File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,12 +12,6 @@ set(target jet)
1212# Define
1313set (root_dir ${CMAKE_CURRENT_SOURCE_DIR } /../..)
1414
15- # Includes
16- include_directories (
17- ${CMAKE_CURRENT_SOURCE_DIR }
18- ${CMAKE_CURRENT_SOURCE_DIR } /3rdparty
19- )
20-
2115# Sources
2216file (GLOB header_dir
2317 ${root_dir} /include/${target} )
@@ -53,9 +47,9 @@ set_target_properties(${target}
5347# Compile options
5448target_compile_options (${target}
5549 PRIVATE
50+ ${DEFAULT_COMPILE_OPTIONS}
5651
5752 PUBLIC
58- ${DEFAULT_COMPILE_OPTIONS}
5953
6054 INTERFACE
6155)
@@ -70,6 +64,23 @@ target_link_libraries(${target}
7064 INTERFACE
7165)
7266
67+ # Includes
68+ target_include_directories (${target}
69+ PRIVATE
70+ ${CMAKE_CURRENT_SOURCE_DIR }
71+ ${CMAKE_CURRENT_SOURCE_DIR } /3rdparty
72+
73+ PUBLIC
74+
75+ INTERFACE
76+ $<BUILD_INTERFACE :${header_dir} >
77+ $<INSTALL_INTERFACE :include >
78+ )
79+
7380# Install
74- install (TARGETS ${target} DESTINATION lib)
81+ install (TARGETS ${target} DESTINATION lib EXPORT ${target} _Export )
7582install (DIRECTORY ${header_dir} DESTINATION include)
83+ install (EXPORT ${target} _Export
84+ DESTINATION lib/cmake/${target}
85+ FILE ${target} Config.cmake
86+ )
You can’t perform that action at this time.
0 commit comments