-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (33 loc) · 1.06 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.12)
project(untitled)
set(CMAKE_CXX_STANDARD 17)
add_subdirectory("deps/untitled-argparser")
add_subdirectory("deps/untitled-logger")
add_subdirectory("deps/wxWidgets")
add_subdirectory("deps/libpqxx")
add_subdirectory("deps/fmt")
file(GLOB_RECURSE untitled_sources CONFIGURE_DEPENDS "src/**")
message("Sources are: ${untitled_sources}")
add_executable(untitled ${untitled_sources})
if (WIN32)
set_target_properties(untitled PROPERTIES LINK_FLAGS /SUBSYSTEM:WINDOWS)
endif ()
target_include_directories(untitled PUBLIC
${ARGPARSER_INCLUDES}
${LOGGER_INCLUDES}
"include/"
)
target_link_libraries(untitled PUBLIC
${ARGPARSER_LIBS}
${LOGGER_LIBS}
wx::core
wx::base
wx::net
wx::aui
pqxx
fmt
)
target_precompile_headers(untitled PUBLIC "include/UntitledPrecomp.hpp")
add_custom_command(TARGET untitled POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_SOURCE_DIR}/resources" "${CMAKE_BINARY_DIR}/resources"
)