-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
37 lines (29 loc) · 892 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
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.3)
project(LWGA)
set(LWGA_CXX_FLAGS " -pthread -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3 ${LWGA_CXX_FLAGS}")
#set(SOURCE_FILES
# include/cop_ga.h
# src/cop_ga.cpp
# src/cop_ga_main.cpp
# src/ctop_ga.cpp
# )
set(GENERIC_FILES
include/ga_types.h include/ga_utils.h src/ga_utils.cpp)
set(COP_GA
${GENERIC_FILES}
include/cop_ga.h
src/cop_ga.cpp
src/cop_ga_main.cpp)
set(CTOP_GA
${GENERIC_FILES}
include/ctop_ga.h
src/ctop_ga.cpp
src/ctop_ga_main.cpp)
include_directories(.)
include_directories(include)
#add_executable(LWGA ${SOURCE_FILES})
add_executable(cop-ga ${COP_GA})
target_link_libraries(cop-ga pthread)
add_executable(ctop-ga ${CTOP_GA})
target_link_libraries(ctop-ga pthread)