NouVeL/ADVect/CMakeLists.txt

25 lines
924 B
Text
Raw Normal View History

2022-05-09 01:50:09 -04:00
# CMakeList.txt : CMake project for NouVeL, include source and define
# project specific logic here.
#
cmake_minimum_required (VERSION 3.8)
project (ADVect)
2023-04-06 19:56:40 -04:00
add_executable (Game "ADVect.cpp" "Graphics.cpp" "Track.h" "Audio.cpp" "Audio.h")
2022-05-09 01:50:09 -04:00
# TODO: Add tests and install targets if needed.
include_directories ("include" "../NVL/")
add_subdirectory("ext/freetype")
2022-08-18 12:17:43 -04:00
add_subdirectory("ext/bgfx")
2022-05-10 02:42:12 -04:00
if (WIN32)
2023-04-06 20:33:08 -04:00
include_directories("include_windows" "include_windows/SDL2")
2022-08-23 18:02:15 -04:00
target_link_libraries (Game PRIVATE ${PROJECT_SOURCE_DIR}/lib/SDL2.lib ${PROJECT_SOURCE_DIR}/lib/SDL2main.lib NVL freetype bgfx bx)
2023-04-06 19:50:37 -04:00
elseif (APPLE)
set_target_properties(Game PROPERTIES XCODE_ATTRIBUTE_ENABLE_BITCODE "NO")
find_package(SDL2 REQUIRED)
target_link_libraries (Game PRIVATE NVL freetype bgfx bx SDL2::SDL2)
2022-05-10 02:42:12 -04:00
else ()
2022-08-23 18:02:15 -04:00
find_package(SDL2 REQUIRED)
target_link_libraries (Game PRIVATE NVL freetype bgfx bx SDL2::SDL2 SDL2::SDL2main)
2023-04-06 19:50:37 -04:00
endif ()