-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
44 lines (28 loc) · 1008 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
38
39
40
41
42
43
cmake_minimum_required(VERSION 3.0.0)
project(main VERSION 0.1.0)
include(CTest)
enable_testing()
aux_source_directory(src sources)
aux_source_directory(utils utilsources)
aux_source_directory(test testsources)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
find_package(jsoncpp CONFIG REQUIRED)
link_libraries(jsoncpp_lib jsoncpp_object)
find_package(glad CONFIG REQUIRED)
link_libraries(glad::glad)
find_package(Catch2 CONFIG REQUIRED)
link_libraries(Catch2::Catch2)
find_package(imgui CONFIG REQUIRED)
link_libraries(imgui::imgui)
find_package(glfw3 CONFIG REQUIRED)
link_libraries(glfw)
link_libraries( opengl32)
include_directories(
${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/utils
)
include(CPack)
# -----------------------------------------------------------------------------------------------------------
add_executable(main ${sources} ${utilsources} main.cpp )
add_executable(testproject ${sources} ${utilsources} test/main.cpp )