aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorjaroWMR <jarorutjes07@gmail.com>2024-10-10 07:35:17 +0200
committerjaroWMR <jarorutjes07@gmail.com>2024-10-10 07:35:17 +0200
commit127e457dda1a1c7b32315a920c80aa4c13ddb840 (patch)
treea64d70d40595955437aa9baff917df5a7d087d9b /src/CMakeLists.txt
parentf1e830392b084be776286a61409d0e4a2755c2cf (diff)
parent44208336d80dd63735215ee2cafb3e73fa03f930 (diff)
merge with master
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9c508a8..f6afdc0 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -5,12 +5,12 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
set(CMAKE_BUILD_TYPE Debug)
-add_subdirectory(../lib/soloud soloud)
-add_subdirectory(../lib/googletest googletest)
-add_subdirectory(../lib/sdl2 sdl2)
-
project(crepe C CXX)
+find_package(SDL2 REQUIRED)
+find_package(SoLoud REQUIRED)
+find_package(GTest REQUIRED)
+
add_library(crepe SHARED)
add_executable(test_main EXCLUDE_FROM_ALL)
@@ -18,10 +18,9 @@ target_include_directories(crepe
PUBLIC SYSTEM INTERFACE .
)
-# TODO: libraries should be linked as PRIVATE
target_link_libraries(crepe
- PUBLIC soloud
- PUBLIC sdl2
+ PRIVATE soloud
+ PRIVATE SDL2
)
add_subdirectory(crepe)