Mercurial > irccd
comparison CMakeLists.txt @ 710:a17de53db29b
Misc: export libraries
Export all libraries with CMake and install headers. While here, build Duktape
as object library to avoid exporting it.
Don't mix static/dynamic libraries anymore.
closes #867
closes #439
author | David Demelier <markand@malikania.fr> |
---|---|
date | Sat, 07 Jul 2018 14:03:04 +0200 |
parents | 1b04ffb2b35e |
children | fc66cc9706a7 |
comparison
equal
deleted
inserted
replaced
709:1b04ffb2b35e | 710:a17de53db29b |
---|---|
47 # systemd - Unit file for systemd. | 47 # systemd - Unit file for systemd. |
48 # tests - The unit tests. | 48 # tests - The unit tests. |
49 # win32 - Additional files for Windows platform. | 49 # win32 - Additional files for Windows platform. |
50 # | 50 # |
51 | 51 |
52 cmake_minimum_required(VERSION 3.3) | 52 cmake_minimum_required(VERSION 3.10) |
53 project(irccd CXX) | 53 project(irccd CXX) |
54 | 54 |
55 # Helper to set global internal variables. | 55 # Helper to set global internal variables. |
56 function(setg var value) | 56 function(setg var value) |
57 set("${var}" "${value}" CACHE INTERNAL "") | 57 set("${var}" "${value}" CACHE INTERNAL "") |
113 if (IRCCD_WITH_TESTS) | 113 if (IRCCD_WITH_TESTS) |
114 include(CTest) | 114 include(CTest) |
115 add_subdirectory(tests) | 115 add_subdirectory(tests) |
116 endif () | 116 endif () |
117 | 117 |
118 add_subdirectory(cmake/export) | |
119 | |
118 message("Compiling with the following flags:") | 120 message("Compiling with the following flags:") |
119 message(" General flags: ${CMAKE_CXX_FLAGS}") | 121 message(" General flags: ${CMAKE_CXX_FLAGS}") |
120 message(" Debug flags: ${CMAKE_CXX_FLAGS_DEBUG}") | 122 message(" Debug flags: ${CMAKE_CXX_FLAGS_DEBUG}") |
121 message(" Release flags: ${CMAKE_CXX_FLAGS_RELEASE}") | 123 message(" Release flags: ${CMAKE_CXX_FLAGS_RELEASE}") |
122 message("") | 124 message("") |