-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
26 lines (20 loc) · 959 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
CMAKE_MINIMUM_REQUIRED(VERSION 3.16)
PROJECT(Cup.Properties VERSION 2020.523 LANGUAGES CXX)
ADD_LIBRARY(Cup.Properties Source/Readable.cpp)
SET_TARGET_PROPERTIES(Cup.Properties PROPERTIES CXX_STANDARD 17)
# Define headers for this library. PUBLIC headers are used for
# compiling the library, and will be added to consumers' build
# paths.
TARGET_INCLUDE_DIRECTORIES(Cup.Properties
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Include/>
$<INSTALL_INTERFACE:Include/>
PRIVATE
# Used for the .cpp for avoid include from root
Include/)
ADD_EXECUTABLE(Test.Cup.Properties Test/TestReadBinary.cpp)
SET_TARGET_PROPERTIES(Test.Cup.Properties PROPERTIES CXX_STANDARD 17)
TARGET_INCLUDE_DIRECTORIES(Test.Cup.Properties PRIVATE Include/)
TARGET_LINK_LIBRARIES(Test.Cup.Properties PRIVATE Cup.Properties)
ENABLE_TESTING()
ADD_TEST(NAME Test.Binary COMMAND $<TARGET_FILE:Test.Cup.Properties>)