-
Notifications
You must be signed in to change notification settings - Fork 187
/
CMakeLists.txt
24 lines (18 loc) · 786 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
cmake_minimum_required(VERSION 3.10)
project(RectangleBinPack VERSION "1.0.0" LANGUAGES CXX)
set(TEST_PROJECT_NAME MaxRectsBinPackTest)
add_library(${PROJECT_NAME}
GuillotineBinPack.cpp
MaxRectsBinPack.cpp
Rect.cpp
ShelfBinPack.cpp
ShelfNextFitBinPack.cpp
ShelfNextFitBinPack.cpp
SkylineBinPack.cpp
)
add_library(RectangleBinPack::RectangleBinPack ALIAS ${PROJECT_NAME})
add_executable(${TEST_PROJECT_NAME} test/MaxRectsBinPackTest.cpp MaxRectsBinPack.cpp Rect.cpp)
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories(${TEST_PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
target_compile_features(${TEST_PROJECT_NAME} PUBLIC cxx_std_11)