link_libraries(ejdb_p) add_executable(jbbmgr jbbmgr.c) set_target_properties(jbbmgr PROPERTIES LINK_FLAGS "-Wl,--as-needed -pie" COMPILE_FLAGS "-DEJDB_STATIC -fPIE") install(TARGETS jbbmgr FRAMEWORK DESTINATION ${FRAMEWORK_INSTALL_DIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME})