-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (23 loc) · 994 Bytes
/
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
project(ctrl)
add_library(ctrl SHARED
src/polymorphicSerializer.cpp
src/polymorphicFactory.cpp
src/readRawPointerRepository.cpp
src/abstractWriteBuffer.cpp
src/binaryWriteBuffer.cpp
src/xmlWriteBuffer.cpp
src/jsonWriteBuffer.cpp
src/writePointerRepository.cpp
src/abstractReadBuffer.cpp
src/binaryReadBuffer.cpp
src/xmlReadBuffer.cpp
src/jsonReadBuffer.cpp)
target_include_directories(ctrl PUBLIC include)
set_property(TARGET ctrl PROPERTY CXX_STANDARD 11)
add_executable(test-ctrl test/test.cpp)
target_include_directories(test-ctrl PUBLIC include)
set_property(TARGET test-ctrl PROPERTY CXX_STANDARD 11)
target_compile_options(test-ctrl PRIVATE -finput-charset=UTF-8)
target_link_libraries(test-ctrl ctrl)
install(TARGETS ctrl DESTINATION lib)
install(DIRECTORY include/ctrl DESTINATION include)