diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-10-27 19:48:47 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-10-27 19:48:47 +0200 |
commit | 6f6efe077b298384e8ab9cf48bbee49b7303d297 (patch) | |
tree | 792f16b5b9a1e58a20bbb05e2b4114853a0cd32d | |
parent | ee5c41b2bfc383143dae8947344951262326dcea (diff) | |
download | nncmpp-6f6efe077b298384e8ab9cf48bbee49b7303d297.tar.gz nncmpp-6f6efe077b298384e8ab9cf48bbee49b7303d297.tar.xz nncmpp-6f6efe077b298384e8ab9cf48bbee49b7303d297.zip |
CMakeLists.txt: synchronize with sdtui
-rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 84c0fa3..fc09049 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,12 +26,15 @@ if (USE_SYSTEM_TERMO) message (FATAL_ERROR "System termo library not found") endif (NOT Termo_FOUND) else () + # We don't want the library to install, but EXCLUDE_FROM_ALL ignores tests add_subdirectory (termo EXCLUDE_FROM_ALL) - # We don't have many good choices when we don't want to install it and want - # to support older versions of CMake; this is a relatively clean approach - # (other possibilities: setting a variable in the parent scope, using a - # cache variable, writing a special config file with build paths in it and - # including it here, or setting a custom property on the targets). + file (WRITE ${PROJECT_BINARY_DIR}/CTestCustom.cmake + "execute_process (COMMAND ${CMAKE_COMMAND} --build termo)") + + # We don't have many good choices; this is a relatively clean approach + # (other possibilities: setting a variable in the parent scope, using + # a cache variable, writing a special config file with build paths in it + # and including it here, or setting a custom property on the targets) get_directory_property (Termo_INCLUDE_DIRS DIRECTORY termo INCLUDE_DIRECTORIES) set (Termo_LIBRARIES termo-static) |