-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
45 lines (31 loc) · 1.17 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
cmake_minimum_required(VERSION 3.14)
set(projectName "davis")
project(${projectName} VERSION 0.01 LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if(WIN32)
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND CMAKE_BUILD_TYPE STREQUAL "Release")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
endif()
endif(WIN32)
add_subdirectory("ResourceManager")
add_subdirectory(plotly_maker)
add_subdirectory(array_core)
add_subdirectory(common_utils)
add_subdirectory(gui)
set(HEADER_FILES davis.h)
# tests
enable_testing()
add_subdirectory(Tests)
include_directories(${RESOURCE_MANAGER_INCLUDE_DIRS})
rm_embed_resources(RESOURCES "plotly_maker/plotly-2.32.0.min.js")
add_executable("davis_launcher" davis_launcher.cpp davis.h)
add_executable(${projectName} main.cpp cxxopts.hpp ${RESOURCES})
target_link_libraries(${projectName} "ArrayCore")
target_link_libraries("davis_launcher" "PlotlyMaker" "CommonUtils")
##### NOT WORKING #####
#add_custom_command(TARGET ${projectName}
# POST_BUILD
# COMMAND cmd /c "${CMAKE_SOURCE_DIR}/!Format + one_header.bat"
# COMMENT "Running post-build script")