forked from RuleWorld/nfsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
69 lines (53 loc) · 2 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
cmake_minimum_required(VERSION 2.8.9)
project(NFsim)
#find_package(XMLRPC REQUIRED abyss-server c++2)
#if (NOT XMLRPC_FOUND)
# message (FATAL_ERROR "XMLRPC-C not found")
#endif (NOT XMLRPC_FOUND)
set(CMAKE_BUILD_TYPE Release)
set(SUB_DIRS
src/nauty24
src/NFutil
src/NFutil/MTrand
src/NFtest/transcription
src/NFtest/tlbr
src/NFtest/simple_system
src/NFtest/agentcell/cell
src/NFtest/agentcell
src/NFscheduler
src/NFreactions/transformations
src/NFreactions/reactions
src/NFreactions/reactantLists
src/NFreactions/mappings
src/NFreactions
src/NFoutput
src/NFinput
src/NFinput/TinyXML
src/NFinput/json
src/NFfunction/muParser
src/NFfunction
src/NFcore
src/NFcore/reactionSelector
src/NFcore/moleculeLists
)
add_definitions("-Wno-deprecated-declarations")
IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
# SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
# SET(BUILD_SHARED_LIBRARIES OFF)
# SET(CMAKE_EXE_LINKER_FLAGS "-static")
ELSE(CMAKE_SYSTEM_NAME MATCHES "Windows")
set_source_files_properties( src/NFreactions/reactions/DORreaction.cpp PROPERTIES COMPILE_FLAGS -std=c++11 )
set_source_files_properties( src/NFcore/molecule.cpp PROPERTIES COMPILE_FLAGS -std=c++11 )
set_source_files_properties( src/NFcore/templateMolecule.cpp PROPERTIES COMPILE_FLAGS -std=c++11 )
set_source_files_properties( src/NFinput/NFinput.cpp PROPERTIES COMPILE_FLAGS -std=c++11 )
ENDIF(CMAKE_SYSTEM_NAME MATCHES "Windows")
#include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${XMLRPC_INCLUDE_DIRS} ${SUB_DIRS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR} include ${SUB_DIRS})
file(GLOB_RECURSE src_files "${CMAKE_CURRENT_SOURCE_DIR}/src/*cpp")
file(GLOB_RECURSE c_src_files "${CMAKE_CURRENT_SOURCE_DIR}/src/*c")
set(SRC_FILES
${src_files}
${c_src_files}
)
add_executable(${PROJECT_NAME} ${SRC_FILES} )