-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (28 loc) · 1.27 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
cmake_minimum_required(VERSION 3.10)
project(FloorThreeD)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set (OpenCV_DIR ${CMAKE_SOURCE_DIR}/Vendor/opencv/build)
find_package(OpenCV REQUIRED)
find_package(Boost 1.40 COMPONENTS program_options REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${OpenCV_INCLUDE_DIRS}/include)
link_directories(${OpenCV_LIB_DIR})
add_subdirectory(${CMAKE_SOURCE_DIR}/Vendor/json)
#custom
include_directories(${CMAKE_SOURCE_DIR}/include)
include_directories(${CMAKE_SOURCE_DIR}/Vendor/glfw-3.4/include)
include_directories(${CMAKE_SOURCE_DIR}/include/imgui)
include_directories(${CMAKE_SOURCE_DIR}/include/rlImgui)
file(GLOB SOURCES ${CMAKE_SOURCE_DIR}/src/*.cpp)
file(GLOB IMGUI_SOURCES ${CMAKE_SOURCE_DIR}/src/imgui/*.cpp)
add_executable(main main.cpp ${SOURCES} ${IMGUI_SOURCES} src/tinyfiledialogs.c)
target_link_libraries(main ${OpenCV_LIBS} )
# Link the raylib static library
target_link_libraries(main ${CMAKE_SOURCE_DIR}/Vendor/libraylib.a)
target_link_libraries(main ${CMAKE_SOURCE_DIR}/Vendor/glfw-3.4/libglfw3.a ${Boost_LIBRARIES} nlohmann_json::nlohmann_json)
if (APPLE)
target_link_libraries(main "-framework IOKit" "-framework Cocoa" "-framework OpenGL")
endif()
#