diff options
author | jaroWMR <jarorutjes07@gmail.com> | 2024-10-09 19:58:30 +0200 |
---|---|---|
committer | jaroWMR <jarorutjes07@gmail.com> | 2024-10-09 19:58:30 +0200 |
commit | 2884c56b066fcafb4f0042799f8a16ea3b238d2a (patch) | |
tree | 9c30844807e8ab5f48a17773d19e5b565cb1a59d /src/CMakeLists.txt | |
parent | 5f84969c851530ebc430be2cf8e99c945ff7a4a7 (diff) | |
parent | 08d0b07c19edfe8c81dfe4e21c0d4c1ef128b628 (diff) |
merge with master
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b8ed359..f11402a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -7,13 +7,35 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS 1) set(CMAKE_BUILD_TYPE Debug) add_compile_definitions(DEBUG) +add_subdirectory(../lib/soloud soloud) +add_subdirectory(../lib/googletest googletest) + project(crepe C CXX) -find_package(SDL2 REQUIRED) -include_directories(${SDL2_INCLUDE_DIRS}) +add_library(crepe SHARED) +add_executable(test_main EXCLUDE_FROM_ALL) + +target_include_directories(crepe + PUBLIC SYSTEM INTERFACE . +) + +# TODO: libraries should be linked as PRIVATE +target_link_libraries(crepe + PUBLIC soloud +) + +add_subdirectory(crepe) +add_subdirectory(test) +add_subdirectory(example) -add_executable(main) +install( + TARGETS crepe + FILE_SET HEADERS DESTINATION include/crepe +) -target_link_libraries(main ${SDL2_LIBRARIES}) +target_link_libraries(test_main + PRIVATE gtest_main + PUBLIC crepe +) add_subdirectory(crepe)
\ No newline at end of file |