blob: 6ea26d2fe2dd862fadca173f698d950285d658e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 79f7074..775b565 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,7 +25,7 @@ if(UNIX AND NOT APPLE)
option(CLIP_X11_WITH_PNG "Compile with libpng to support copy/paste image in png format" on)
endif()
-add_library(clip clip.cpp)
+add_library(clip STATIC clip.cpp)
if(CLIP_ENABLE_IMAGE)
target_sources(clip PRIVATE image.cpp)
@@ -109,6 +109,8 @@ endif()
if(CLIP_INSTALL)
include(GNUInstallDirs)
+ target_include_directories(clip PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
+
install(
FILES clip.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|