diff options
Diffstat (limited to 'libk8055/CMakeLists.txt')
-rw-r--r-- | libk8055/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libk8055/CMakeLists.txt b/libk8055/CMakeLists.txt index 62398ff..75466ff 100644 --- a/libk8055/CMakeLists.txt +++ b/libk8055/CMakeLists.txt @@ -14,6 +14,22 @@ INSTALL(TARGETS k8055-${VERSION} PUBLIC_HEADER DESTINATION include ) +ADD_LIBRARY( k8055++-${VERSION} SHARED libk8055.cpp ) +ADD_DEPENDENCIES(k8055++-${VERSION} k8055-${VERSION}) +ADD_LIBRARY( k8055++-static-${VERSION} STATIC libk8055.cpp ) +ADD_DEPENDENCIES(k8055++-static-${VERSION} k8055-${VERSION}) +INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR} ) +TARGET_LINK_LIBRARIES( k8055++-${VERSION} + k8055-${VERSION} +) +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} |