CMakeLists tweaks: add STATIC, fix build on Gentoo + basic .gitignore #43
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
cmake-build-debug
|
||||||
|
build
|
||||||
|
.idea
|
@ -25,7 +25,7 @@ set(squawkCORE_SRC
|
|||||||
add_subdirectory(passwordStorageEngines)
|
add_subdirectory(passwordStorageEngines)
|
||||||
|
|
||||||
# Tell CMake to create the helloworld executable
|
# Tell CMake to create the helloworld executable
|
||||||
add_library(squawkCORE ${squawkCORE_SRC})
|
add_library(squawkCORE STATIC ${squawkCORE_SRC})
|
||||||
|
|
||||||
|
|
||||||
if(SYSTEM_QXMPP)
|
if(SYSTEM_QXMPP)
|
||||||
|
@ -14,7 +14,7 @@ if (WITH_KWALLET)
|
|||||||
kwallet.cpp
|
kwallet.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(kwalletPSE ${kwalletPSE_SRC})
|
add_library(kwalletPSE STATIC ${kwalletPSE_SRC})
|
||||||
|
|
||||||
target_include_directories(kwalletPSE PUBLIC ${KWALLET_INTERFACE_INCLUDE_DIRECTORIES})
|
target_include_directories(kwalletPSE PUBLIC ${KWALLET_INTERFACE_INCLUDE_DIRECTORIES})
|
||||||
target_include_directories(kwalletPSE PUBLIC ${Qt5GUI_INTERFACE_INCLUDE_DIRECTORIES})
|
target_include_directories(kwalletPSE PUBLIC ${Qt5GUI_INTERFACE_INCLUDE_DIRECTORIES})
|
||||||
|
2
external/simpleCrypt/CMakeLists.txt
vendored
2
external/simpleCrypt/CMakeLists.txt
vendored
@ -10,7 +10,7 @@ set(simplecrypt_SRC
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Tell CMake to create the helloworld executable
|
# Tell CMake to create the helloworld executable
|
||||||
add_library(simpleCrypt ${simplecrypt_SRC})
|
add_library(simpleCrypt STATIC ${simplecrypt_SRC})
|
||||||
|
|
||||||
# Use the Widgets module from Qt 5.
|
# Use the Widgets module from Qt 5.
|
||||||
target_link_libraries(simpleCrypt Qt5::Core)
|
target_link_libraries(simpleCrypt Qt5::Core)
|
||||||
|
@ -8,7 +8,7 @@ set(CMAKE_AUTOUIC ON)
|
|||||||
|
|
||||||
# Find the QtWidgets library
|
# Find the QtWidgets library
|
||||||
find_package(Qt5 CONFIG REQUIRED COMPONENTS Widgets DBus Core)
|
find_package(Qt5 CONFIG REQUIRED COMPONENTS Widgets DBus Core)
|
||||||
find_package(Boost 1.36.0 CONFIG REQUIRED COMPONENTS
|
find_package(Boost 1.36.0 REQUIRED COMPONENTS
|
||||||
date_time filesystem iostreams)
|
date_time filesystem iostreams)
|
||||||
if(Boost_FOUND)
|
if(Boost_FOUND)
|
||||||
include_directories(${Boost_INCLUDE_DIRS})
|
include_directories(${Boost_INCLUDE_DIRS})
|
||||||
@ -35,7 +35,7 @@ set(squawkUI_SRC
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Tell CMake to create the helloworld executable
|
# Tell CMake to create the helloworld executable
|
||||||
add_library(squawkUI ${squawkUI_SRC})
|
add_library(squawkUI STATIC ${squawkUI_SRC})
|
||||||
|
|
||||||
# Use the Widgets module from Qt 5.
|
# Use the Widgets module from Qt 5.
|
||||||
target_link_libraries(squawkUI squawkWidgets)
|
target_link_libraries(squawkUI squawkWidgets)
|
||||||
|
@ -16,7 +16,7 @@ set(vCardUI_SRC
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Tell CMake to create the helloworld executable
|
# Tell CMake to create the helloworld executable
|
||||||
add_library(vCardUI ${vCardUI_SRC})
|
add_library(vCardUI STATIC ${vCardUI_SRC})
|
||||||
|
|
||||||
# Use the Widgets module from Qt 5.
|
# Use the Widgets module from Qt 5.
|
||||||
target_link_libraries(vCardUI Qt5::Widgets)
|
target_link_libraries(vCardUI Qt5::Widgets)
|
||||||
|
Loading…
Reference in New Issue
Block a user