aux_source_directory(${CMAKE_SOURCE_DIR}/lib SRC_FILES_IN_LIB) message(STATUS "SRC_FILES_IN_LIB: ${SRC_FILES_IN_LIB}") add_library(WireRouting SHARED ${SRC_FILES_IN_LIB}) target_compile_definitions(WireRouting PUBLIC -DMY_LIB_SHARED_BUILD) target_compile_definitions(WireRouting PRIVATE -DMY_LIB_EXPORTS) INSTALL(TARGETS WireRouting DESTINATION ${CMAKE_SOURCE_DIR}/lib) SET_TARGET_PROPERTIES( WireRouting PROPERTIES LINKER_LANGUAGE C ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib OUTPUT_NAME "WireRouting" PREFIX "" ) target_include_directories( WireRouting PUBLIC ${CMAKE_SOURCE_DIR}/include )