-
Notifications
You must be signed in to change notification settings - Fork 297
/
CMakeLists.txt
32 lines (23 loc) · 1.14 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#####################################################################################################
# OMCppOMCFactory
set(OMC_SIMRT_CPP_SIMCOREFACTORY_OMCFACTORY_SOURCES OMCFactory/OMCFactory.cpp)
add_library(OMCppOMCFactory STATIC)
add_library(omc::simrt::cpp::simcorefactory::omcfactory ALIAS OMCppOMCFactory)
target_sources(OMCppOMCFactory PRIVATE ${OMC_SIMRT_CPP_SIMCOREFACTORY_OMCFACTORY_SOURCES})
target_link_libraries(OMCppOMCFactory PUBLIC omc::simrt::cpp::config)
target_link_libraries(OMCppOMCFactory PUBLIC omc::simrt::cpp::core::utils::extension)
target_link_libraries(OMCppOMCFactory PUBLIC Boost::program_options)
target_link_libraries(OMCppOMCFactory PUBLIC Boost::filesystem)
target_link_libraries(OMCppOMCFactory PUBLIC Threads::Threads)
target_link_libraries(OMCppOMCFactory PUBLIC ${CMAKE_DL_LIBS})
if(WIN32)
target_link_libraries(OMCppOMCFactory PUBLIC wsock32)
target_link_libraries(OMCppOMCFactory PUBLIC ws2_32)
endif()
install(TARGETS OMCppOMCFactory)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
TYPE INCLUDE
FILES_MATCHING
PATTERN Policies/FactoryConfig.h
PATTERN OMCFactory/OMCFactory.h
)