File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ cmake_minimum_required(VERSION 3.5)
2
2
3
3
project (libdftd3 VERSION 0.9.2 LANGUAGES Fortran)
4
4
5
- set (LIBRARY_ONLY FALSE CACHE BOOL "Whether only library should be compiled" )
6
-
7
5
option (BUILD_SHARED_LIBS "Whether the library should be a shared one" FALSE )
8
6
9
7
option (INSTALL_INCLUDE_FILES "Whether include / module files should be installed" TRUE )
Original file line number Diff line number Diff line change @@ -11,10 +11,12 @@ set(includedir ${CMAKE_CURRENT_BINARY_DIR}/include)
11
11
12
12
set_target_properties (dftd3 PROPERTIES Fortran_MODULE_DIRECTORY ${includedir} )
13
13
14
- target_include_directories (dftd3 PUBLIC ${includedir} )
14
+ target_include_directories (dftd3 PUBLIC
15
+ $<BUILD_INTERFACE:${includedir} >
16
+ $<INSTALL_INTERFACE:${INSTALL_MOD_DIR} >)
15
17
16
18
install (TARGETS dftd3
17
- EXPORT dftd3-targets
19
+ EXPORT ${INSTALL_EXPORT_NAME}
18
20
ARCHIVE DESTINATION ${INSTALL_LIB_DIR}
19
21
LIBRARY DESTINATION ${INSTALL_LIB_DIR} )
20
22
You can’t perform that action at this time.
0 commit comments