forked from hjenryin/BCJH-Metropolis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (18 loc) · 814 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
cmake_minimum_required(VERSION 3.0)
project(bcjh)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wall -O3")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
if (CMAKE_SYSTEM_NAME MATCHES "Windows")
add_compile_options("-fexec-charset=gbk")
endif()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR}/build/)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/build/)
aux_source_directory(${CMAKE_SOURCE_DIR}/src src)
file(GLOB src_list_cpp ${CMAKE_SOURCE_DIR}/src/*.cpp
${CMAKE_SOURCE_DIR}/src/*/*.cpp
)
# add_subdirectory(${CMAKE_SOURCE_DIR}/src/include)
# add_subdirectory(${CMAKE_SOURCE_DIR}/src/utils)
add_executable(bcjh ${src_list_cpp})
# target_link_libraries(bcjh jsoncpp)
# target_link_libraries(bcjh jsonhelper)