summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-06-23 14:59:33 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-06-23 14:59:33 +0200
commitf3c6e08fe4068534373f8026892f569bdcdfa4dd (patch)
tree729385463df8c457e62c8fcfd8b2c01c826e1cb0 /src
parentcc7465bec1ab0b12ca79758807788e4ac8fad765 (diff)
downloadlibufodecode-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.txt14
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)
-