forked from OpenRadioss/OpenRadioss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (23 loc) · 812 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# CMake project file for Radioss Starter
# --------------------------------------
cmake_minimum_required (VERSION 2.8)
project (OpenRadioss)
set (actual_directory ${CMAKE_CURRENT_SOURCE_DIR})
message (STATUS "source directory : ${actual_directory} ")
message (STATUS "VS_BUILD : ${VS_BUILD} ")
if (NOT DEFINED build)
set (build "both")
endif ()
if ( ${build} STREQUAL "starter" OR ${build} STREQUAL "both" )
message (STATUS "Building Starter ")
set (EXEC_NAME ${starter})
add_subdirectory(${actual_directory}/starter)
message (STATUS "starter name : ${EXEC_NAME} ")
endif()
if ( ${build} STREQUAL "engine" OR ${build} STREQUAL "both" )
message (STATUS "Building Engine ")
set (EXEC_NAME ${engine})
add_subdirectory(${actual_directory}/engine)
message (STATUS "engine name : ${EXEC_NAME} ")
endif()