aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-10-01 19:53:56 +0200
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-10-01 19:53:56 +0200
commitef44da3f5e9ca533782da5e185e69e28c295d226 (patch)
treed44f4f849245f640eff874d53ab610cff2fbe53b /src/CMakeLists.txt
parent8e66301577551bc5b8a2e169be173e71de2f5e4e (diff)
Added resources to crepe
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0090188..87330d4 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -8,9 +8,28 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
set(CMAKE_BUILD_TYPE Debug)
add_compile_definitions(DEBUG)
+#add_subdirectory(../lib/soloud soloud)
+
project(crepe C CXX)
-add_executable(main)
+add_library(crepe SHARED)
+
+target_include_directories(crepe
+ PUBLIC SYSTEM INTERFACE .
+)
+
+# TODO: libraries should be linked as PRIVATE
+target_link_libraries(crepe
+ #PUBLIC soloud
+)
add_subdirectory(crepe)
+install(
+ TARGETS crepe
+ FILE_SET HEADERS DESTINATION include/crepe
+)
+
+
+add_executable(dummy_rm dummy_resource_manager.cpp)
+target_link_libraries(dummy_rm PUBLIC crepe)