-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
56 lines (36 loc) · 1.31 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
cmake_minimum_required(VERSION 3.16.3)
project(ogss_view_pp)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -Wall -Wextra -pedantic")
################################
# OGSS/C++ common
################################
ADD_SUBDIRECTORY(lib/ogss.common.cpp)
include_directories(lib/ogss.common.cpp)
################################
# wxWidgets
################################
find_package(wxWidgets REQUIRED COMPONENTS core base aui)
include(${wxWidgets_USE_FILE})
################################
# GTest
################################
# not now
################################
# Unit Tests
################################
# not now
#file(GLOB_RECURSE TEST_FILES LIST_DIRECTORIES false test/*.cpp)
#add_executable(runTests ${SOURCE_FILES} ${TEST_FILES})
# Link test executable against gtest & gtest_main
#target_link_libraries(runTests ogss.common.cpp gtest gtest_main)
#add_test(runTests runTests)
################################
# The application
################################
#implementation
file(GLOB_RECURSE SOURCE_FILES LIST_DIRECTORIES false src/*.cpp)
#actual tests
add_executable(ogssview ${SOURCE_FILES})
# Link test executable against gtest & gtest_main
target_link_libraries(ogssview ogss.common.cpp ${wxWidgets_LIBRARIES})
set_property(TARGET ogssview PROPERTY INTERPROCEDURAL_OPTIMIZATION True)