43 lines
882 B
CMake
43 lines
882 B
CMake
cmake_minimum_required(VERSION 3.24)
|
|
project(somaesque)
|
|
|
|
|
|
set(CMAKE_BUILD_TYPE Release)
|
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
|
|
|
#find_package(glfw3 3.3 REQUIRED)
|
|
#find_package(glm REQUIRED)
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
#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)
|