-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
38 lines (31 loc) · 1.38 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
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
PROJECT(Lycoris)
SET(CMAKE_CXX_STANDARD 11)
SET(CMAKE_BUILD_TYPE Release)
SET(CMAKE_CXX_FLAGS_RELEASE "-O3")
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/LycorisNet/lib)
INCLUDE_DIRECTORIES(./LycorisNet/include)
SET(SOURCE_FILES
LycorisNet/include/genome.h
LycorisNet/sources/genome.cpp
LycorisNet/include/node.h
LycorisNet/sources/node.cpp
LycorisNet/include/utils.h
LycorisNet/sources/utils.cpp
LycorisNet/include/individual.h
LycorisNet/sources/individual.cpp
LycorisNet/include/lycoris.h
LycorisNet/sources/lycoris.cpp
LycorisNet/include/args.h
LycorisNet/sources/args.cpp)
ADD_LIBRARY(lycoris SHARED ${SOURCE_FILES})
FIND_PACKAGE(Threads REQUIRED)
TARGET_LINK_LIBRARIES(lycoris Threads::Threads)
INSTALL(TARGETS lycoris
LIBRARY DESTINATION lib)
INSTALL(FILES ${PROJECT_SOURCE_DIR}/LycorisNet/include/args.h DESTINATION include)
INSTALL(FILES ${PROJECT_SOURCE_DIR}/LycorisNet/include/genome.h DESTINATION include)
INSTALL(FILES ${PROJECT_SOURCE_DIR}/LycorisNet/include/individual.h DESTINATION include)
INSTALL(FILES ${PROJECT_SOURCE_DIR}/LycorisNet/include/lycoris.h DESTINATION include)
INSTALL(FILES ${PROJECT_SOURCE_DIR}/LycorisNet/include/node.h DESTINATION include)
INSTALL(FILES ${PROJECT_SOURCE_DIR}/LycorisNet/include/utils.h DESTINATION include)