diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2015-06-23 14:59:33 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2015-06-23 14:59:33 +0200 |
commit | f3c6e08fe4068534373f8026892f569bdcdfa4dd (patch) | |
tree | 729385463df8c457e62c8fcfd8b2c01c826e1cb0 /src | |
parent | cc7465bec1ab0b12ca79758807788e4ac8fad765 (diff) | |
download | libufodecode-f3c6e08fe4068534373f8026892f569bdcdfa4dd.tar.gz libufodecode-f3c6e08fe4068534373f8026892f569bdcdfa4dd.tar.bz2 libufodecode-f3c6e08fe4068534373f8026892f569bdcdfa4dd.tar.xz libufodecode-f3c6e08fe4068534373f8026892f569bdcdfa4dd.zip |
Use ConfigurePaths to configure paths
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 313b932..85feff4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -31,6 +31,9 @@ include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) +configure_file("config.h.in" + "${CMAKE_CURRENT_BINARY_DIR}/config.h") + add_definitions("--std=c99 -Wall -O2 ${SSE_FLAGS}") add_library(ufodecode SHARED ufodecode.c) @@ -41,17 +44,10 @@ set_target_properties(ufodecode PROPERTIES ) install(TARGETS ufodecode - LIBRARY DESTINATION lib${LIB_SUFFIX} + LIBRARY DESTINATION ${LIBUFODECODE_LIBDIR} ) install(FILES ufodecode.h - DESTINATION include + DESTINATION ${LIBUFODECODE_INCLUDEDIR} ) - -if ("${CMAKE_BUILD_TYPE}" MATCHES "Debug") - set(DEBUG "1") -endif() - -configure_file(config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) - |