Debian Codegraph @

CMakeStuff/toolchains/unix-toolchain.cmake

raw
1 message("")
2 message("${BoldRed}UNIX non APPLE environment${ColourReset}")
3 message("")
4 message("~~~~~~ Instructions ~~~~~~")
5 message("On UNIX/GNU-Linux, please run the configuration like this:")
6 message("cmake -G \"Unix Makefiles\" -DCMAKE_BUILD_TYPE=<Debug | Release> -DCMAKE_INSTALL_PREFIX=</usr | your_dir> ../development")
7 message("")
8
9 set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES /usr/include)
10 set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES /usr/include)
11
12 ## platform dependent compiler flags:
13 include(CheckCXXCompilerFlag)
14
15 if(WITH_FPIC)
16 add_definitions(-fPIC)
17 endif()
18
19 # Install cmake module
20 install(FILES ${CMAKE_MODULE_PATH}/FindIsoSpec++.cmake
21 DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/isospec++)
22
23 # Install cmake config
24 configure_file(${CMAKE_MODULE_PATH}/IsoSpec++Config.cmake.in
25 ${CMAKE_BINARY_DIR}/IsoSpec++Config.cmake)
26 install(FILES ${CMAKE_BINARY_DIR}/IsoSpec++Config.cmake
27 DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/isospec++)
28
29 # Install the PkgConfig config file (only substitute the @VAR@
30 # because we need to preserve all the ${prefix} strings like
31 # they are.
32 configure_file(${CMAKE_MODULE_PATH}/pkgconfig/libisospec++.pc.in
33 ${CMAKE_BINARY_DIR}/libisospec++.pc @ONLY)
34 install(FILES ${CMAKE_BINARY_DIR}/libisospec++.pc
35 DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
36
37 # Now deal with the manual doc stuff
38 add_subdirectory(man)
39
40 # Now deal with the example stuff
41 add_subdirectory(Examples)
42