Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ target_link_libraries(
rectpack2D::rectpack2D
)

# Set C++ standard to 17
set_property(
TARGET rectpack2D-example
PROPERTY
CXX_STANDARD 17
)

set(RESULT_EXE_WORKING_DIR ${CMAKE_CURRENT_SOURCE_DIR})

# Enable LTO (only in release, not debug with sanitizers)
Expand Down
8 changes: 7 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
add_library(rectpack2D INTERFACE)

target_compile_features(
rectpack2D
INTERFACE
cxx_std_17
)

target_include_directories(
rectpack2D
INTERFACE
${CMAKE_CURRENT_SOURCE_DIR}/
)
)