Commit 217854d400ecb4507be7ac5e441be6799f724c05
1 parent
a6b8531d
Create library as a static lib
Showing
2 changed files
with
4 additions
and
15 deletions
CMakeLists.txt
src/CMakeLists.txt
| ... | ... | @@ -3,30 +3,18 @@ LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake) |
| 3 | 3 | include(projectheader) |
| 4 | 4 | project_header(datatypes) |
| 5 | 5 | |
| 6 | -find_package( Qt5Core REQUIRED ) | |
| 7 | -find_package( Qt5Sql REQUIRED ) | |
| 6 | +set(BUILD_AS_STATIC "ON") | |
| 8 | 7 | |
| 9 | -include(artifacts) | |
| 10 | - | |
| 11 | -#include_directories( SYSTEM | |
| 12 | -# ${Qt5Core_INCLUDE_DIRS} | |
| 13 | -# ${Qt5Sql_INCLUDE_DIRS} | |
| 14 | -#) | |
| 8 | +include_directories( SYSTEM | |
| 9 | +) | |
| 15 | 10 | |
| 16 | 11 | include(compiler) |
| 17 | 12 | |
| 18 | -#include_directories( | |
| 19 | -#) | |
| 20 | - | |
| 21 | 13 | set(SRC_LIST |
| 22 | 14 | ${CMAKE_CURRENT_SOURCE_DIR}/Variant.h |
| 23 | 15 | ${CMAKE_CURRENT_SOURCE_DIR}/Variant.cpp |
| 24 | 16 | ) |
| 25 | 17 | |
| 26 | -#link_directories( | |
| 27 | -# ${CMAKE_BINARY_DIR}/lib | |
| 28 | -#) | |
| 29 | - | |
| 30 | 18 | include(library) |
| 31 | 19 | add_libraries( |
| 32 | 20 | ) | ... | ... |