forked from X123M3-256/TrackRender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
23 lines (19 loc) · 844 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
cmake_minimum_required (VERSION 3.1)
project (TrackRender C)
add_subdirectory(libIsoRender)
include_directories(libIsoRender/src libIsoRender/libImage/src /usr/local/Cellar/jansson/2.12/include)
link_directories(/usr/local/Cellar/jansson/2.12/lib/)
if(MSVC) # assumes vcpkg
find_package(jansson CONFIG REQUIRED)
find_package(PNG REQUIRED)
find_package(embree 3 REQUIRED)
find_package(assimp CONFIG REQUIRED)
link_directories(${EMBREE_ROOT_DIR}/lib)
set(JANSSON jansson::jansson)
add_definitions(/D_USE_MATH_DEFINES /DNOMINMAX /wd4305 /wd4244 /wd4996)
else()
set(JANSSON jansson)
endif()
add_executable(TrackRender src/main.c src/track.c src/track_sections.c src/sprites.c)
set_property(TARGET TrackRender PROPERTY C_STANDARD 99)
target_link_libraries (TrackRender Image IsoRender ${JANSSON})