Files
somaesque-native/CMakeLists.txt
2022-12-04 22:18:53 +01:00

39 lines
813 B
CMake

cmake_minimum_required(VERSION 3.18)
project(somaesque)
#find_package(glfw3 3.3 REQUIRED)
#find_package(glm REQUIRED)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS -I/usr/include/SDL2)
add_executable(somaesque
main.cpp
VoxelSpace.cpp
VoxelSpace.h
)
#target_link_libraries(somaesque glfw GL X11 pthread Xrandr dl SDL2 glm::glm)
#target_include_directories(somaesque PRIVATE src/KHR src/glad)
# TESTING
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/03597a01ee50ed33e9dfd640b249b4be3799d395.zip
)
FetchContent_MakeAvailable(googletest)
enable_testing()
add_executable(tests
tests.cpp
VoxelSpace.cpp
VoxelSpace.h
)
target_link_libraries(
tests
GTest::gtest_main
)
include(GoogleTest)
gtest_discover_tests(tests)