You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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
|
|
|
|
)
|