diff --git a/CMakeLists.txt b/CMakeLists.txt index a77f55a..9584f8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,8 +38,6 @@ add_subdirectory(./vendor) add_subdirectory(./src) add_subdirectory(./test) -#install(TARGETS ${lib_name}_shared LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib COMPONENT LIBRARY) - install(FILES inc/MESA_jump_layer.h DESTINATION ${CMAKE_INSTALL_PREFIX}/include/MESA COMPONENT HEADER) include(Package) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4f7e250..dfab3d0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -17,9 +17,11 @@ add_definitions(-DSAPP_V4=1) add_definitions(-fPIC) add_definitions(-std=c++11) -add_library(${lib_name} SHARED MESA_jump_layer.cpp) +set(SRC MESA_jump_layer.cpp) + +add_library(${lib_name} SHARED ${SRC}) target_link_libraries(${lib_name} m) -install(FILES ${CMAKE_BINARY_DIR}/src/libMESA_jump_layer.so DESTINATION ${CMAKE_INSTALL_PREFIX}/lib COMPONENT LIBRARY) +install(FILES ${CMAKE_BINARY_DIR}/src/libMESA_jump_layer.so DESTINATION ${CMAKE_INSTALL_PREFIX}/lib COMPONENT LIBRARIES)