-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
executable file
·32 lines (26 loc) · 955 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
executable file
·32 lines (26 loc) · 955 Bytes
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
28
29
30
31
32
cmake_minimum_required(VERSION 2.8)
include(cmake/google_test.cmake)
project(color)
set(sources color/transformation.cpp
color/palette.cpp
color/interpolation.cpp
color/internal/math.cpp)
set(headers color/interpolation.hpp
color/palette.hpp
color/space.hpp
color/transformation.hpp
color/internal/math.hpp)
add_library(color ${sources} ${headers})
enable_testing()
add_executable(test_color test/test_transformation.cpp
test/test_palette.cpp)
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${GTEST_INCLUDE_DIRS})
target_link_libraries(test_color color ${GTEST_BOTH_LIBRARIES})
add_dependencies(test_color googletest)
add_test(TestColor test_color)
install(TARGETS color
ARCHIVE DESTINATION lib)
install(DIRECTORY color/
DESTINATION include/color
FILES_MATCHING PATTERN "*.hpp"
PATTERN "internal" EXCLUDE)