diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-02-19 00:06:20 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-02-19 00:06:20 +0100 |
commit | 876d6f498bbf358a23b47edaf8b0d967724b1b94 (patch) | |
tree | 01f50dcb0fc680bbad756f6d4d2bf8a9e791530e /libk8055/CMakeLists.txt | |
parent | 9bfdbb1d569eea229fd9f10823891234c8676145 (diff) | |
download | k8055-876d6f498bbf358a23b47edaf8b0d967724b1b94.zip k8055-876d6f498bbf358a23b47edaf8b0d967724b1b94.tar.gz |
libk8055 uses cmake
Diffstat (limited to 'libk8055/CMakeLists.txt')
-rw-r--r-- | libk8055/CMakeLists.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libk8055/CMakeLists.txt b/libk8055/CMakeLists.txt new file mode 100644 index 0000000..62398ff --- /dev/null +++ b/libk8055/CMakeLists.txt @@ -0,0 +1,24 @@ + +ADD_LIBRARY( k8055-${VERSION} SHARED libk8055.c ) +ADD_LIBRARY( k8055-static-${VERSION} STATIC libk8055.c ) +INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR} ) +TARGET_LINK_LIBRARIES( k8055-${VERSION} + usb + m +) +SET_TARGET_PROPERTIES(k8055-${VERSION} PROPERTIES PUBLIC_HEADER k8055.h ) + +INSTALL(TARGETS k8055-${VERSION} + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib + PUBLIC_HEADER DESTINATION include +) + +ADD_EXECUTABLE(k8055 WIN32 MACOSX_BUNDLE main.c ) +TARGET_LINK_LIBRARIES(k8055 + k8055-${VERSION} +) +ADD_DEPENDENCIES(k8055 k8055-${VERSION}) + +INSTALL(TARGETS k8055 RUNTIME DESTINATION bin BUNDLE DESTINATION bin ) +INSTALL(FILES k8055.1.gz DESTINATION man/man1/ ) |