summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--cmake/modules/AddResources.cmake2
-rw-r--r--kurator/CMakeLists.txt1
3 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index da56f8d..bebfbbf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,6 +4,7 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS No)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -D_USE_MATH_DEFINES")
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
+set(CMAKE_INSTALL_BINDIR .)
enable_testing()
find_package(EnTT 3 REQUIRED)
find_package(GTest 1 REQUIRED)
diff --git a/cmake/modules/AddResources.cmake b/cmake/modules/AddResources.cmake
index b59258e..227e710 100644
--- a/cmake/modules/AddResources.cmake
+++ b/cmake/modules/AddResources.cmake
@@ -19,6 +19,8 @@ function(add_resources RESOURCES_TARGET)
"${RESOURCES_PREFIX}/${RESOURCES_SOURCE}"
COMMENT "Moving ${RESOURCES_SOURCE}"
)
+ cmake_path(GET RESOURCES_SOURCE PARENT_PATH PARENT)
+ install(FILES ${RESOURCES_SOURCE} DESTINATION ${PARENT})
endforeach()
list(TRANSFORM RESOURCES_FILES PREPEND "${RESOURCES_PREFIX}/")
add_custom_target(
diff --git a/kurator/CMakeLists.txt b/kurator/CMakeLists.txt
index b97a8b5..1465ba3 100644
--- a/kurator/CMakeLists.txt
+++ b/kurator/CMakeLists.txt
@@ -36,3 +36,4 @@ target_sources(
${PROJECT_NAME}
PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/version.cpp"
)
+install(TARGETS ${PROJECT_NAME} RUNTIME)