mirror of
https://github.com/jhasse/poly2tri.git
synced 2024-11-16 02:32:25 +01:00
33 lines
551 B
CMake
33 lines
551 B
CMake
|
# Dependencies
|
||
|
if (WIN32)
|
||
|
set(Boost_USE_STATIC_LIBS ON)
|
||
|
endif()
|
||
|
find_package(Boost 1.69 REQUIRED COMPONENTS
|
||
|
filesystem
|
||
|
unit_test_framework
|
||
|
)
|
||
|
|
||
|
# Build Unit Tests
|
||
|
add_executable(test_poly2tri
|
||
|
main.cpp
|
||
|
TriangleTest.cpp
|
||
|
)
|
||
|
|
||
|
target_include_directories(test_poly2tri
|
||
|
PRIVATE
|
||
|
${Boost_INCLUDE_DIRS}
|
||
|
)
|
||
|
|
||
|
target_compile_definitions(test_poly2tri
|
||
|
PRIVATE
|
||
|
P2T_BASE_DIR="${PROJECT_SOURCE_DIR}"
|
||
|
)
|
||
|
|
||
|
target_link_libraries(test_poly2tri
|
||
|
PRIVATE
|
||
|
poly2tri
|
||
|
${Boost_LIBRARIES}
|
||
|
)
|
||
|
|
||
|
add_test(NAME poly2tri COMMAND test_poly2tri)
|