summaryrefslogtreecommitdiff
path: root/archived/projt-launcher/cmake/useTomlplusplus.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'archived/projt-launcher/cmake/useTomlplusplus.cmake')
-rw-r--r--archived/projt-launcher/cmake/useTomlplusplus.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/archived/projt-launcher/cmake/useTomlplusplus.cmake b/archived/projt-launcher/cmake/useTomlplusplus.cmake
new file mode 100644
index 0000000000..6d684a032f
--- /dev/null
+++ b/archived/projt-launcher/cmake/useTomlplusplus.cmake
@@ -0,0 +1,21 @@
+function(projt_add_tomlplusplus)
+ if(UNIX AND NOT APPLE)
+ if(DEFINED Launcher_BUNDLED_LIBDIR AND NOT Launcher_BUNDLED_LIBDIR STREQUAL "")
+ projt_push_install_libdir("${Launcher_BUNDLED_LIBDIR}")
+ endif()
+ if(DEFINED Launcher_BUNDLED_INCLUDEDIR AND NOT Launcher_BUNDLED_INCLUDEDIR STREQUAL "")
+ projt_push_install_includedir("${Launcher_BUNDLED_INCLUDEDIR}")
+ endif()
+ endif()
+ projt_push_output_dirs("tomlplusplus")
+ add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../tomlplusplus tomlplusplus)
+ projt_pop_output_dirs()
+ if(UNIX AND NOT APPLE)
+ if(DEFINED Launcher_BUNDLED_INCLUDEDIR AND NOT Launcher_BUNDLED_INCLUDEDIR STREQUAL "")
+ projt_pop_install_includedir()
+ endif()
+ if(DEFINED Launcher_BUNDLED_LIBDIR AND NOT Launcher_BUNDLED_LIBDIR STREQUAL "")
+ projt_pop_install_libdir()
+ endif()
+ endif()
+endfunction() \ No newline at end of file