aboutsummaryrefslogtreecommitdiff
path: root/mwe/dynlink/exec/CMakeLists.txt
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-10-01 20:16:04 +0200
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-10-01 20:16:04 +0200
commit7230b630025886939c726e07eba1a0b35511f687 (patch)
treeaacfe3e427b8041fecc4562a39e9204e3429e8e5 /mwe/dynlink/exec/CMakeLists.txt
parentef44da3f5e9ca533782da5e185e69e28c295d226 (diff)
parent65eda52aa51017f6f7aad158c4f8b6e91054cf0d (diff)
Merge branch 'loek/audio' into niels/resource-manager
Diffstat (limited to 'mwe/dynlink/exec/CMakeLists.txt')
-rw-r--r--mwe/dynlink/exec/CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/mwe/dynlink/exec/CMakeLists.txt b/mwe/dynlink/exec/CMakeLists.txt
index 5335f0f..465b45e 100644
--- a/mwe/dynlink/exec/CMakeLists.txt
+++ b/mwe/dynlink/exec/CMakeLists.txt
@@ -5,12 +5,20 @@ set(CMAKE_CXX_STANDARD 20)
project(main C CXX)
+add_executable(main main.c)
+
# Since we have the source code for the test library, we might as well let
# CMake use it so it automatically picks up the interface headers and compiles
# the library for us. The same can be achieved manually, but is more code.
add_subdirectory(../lib test)
-add_executable(main main.c)
+# include(ExternalProject)
+# ExternalProject_Add(test_ext
+# SOURCE_DIR ../../lib
+# CMAKE_ARGS -DCMAKE_INSTALL_PREFIX="${CMAKE_BINARY_DIR}/ext"
+# )
+# add_dependencies(main test_ext)
+# find_package(test REQUIRED)
# Make sure ld.so (linux) looks in the same folder as the final executable for
# the .so dependency