Skip to content

Commit

Permalink
Simplified CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
GamePad64 committed Feb 27, 2017
1 parent 5797273 commit 848a1d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 27 deletions.
19 changes: 3 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,6 @@ endif()
##### Bundled libraries #####

## Dir_monitor
#find_package(dir_monitor QUIET)
#if(NOT dir_monitor_FOUND)
# add_subdirectory("contrib/dir_monitor")
#endif()
add_library(dir_monitor INTERFACE)
target_include_directories(dir_monitor INTERFACE contrib/dir_monitor/include)

Expand Down Expand Up @@ -197,8 +193,8 @@ add_subdirectory("contrib/rabin")
add_subdirectory("contrib/dht")

## QtSingleApplication
if(BUILD_CLI OR BUILD_GUI)
add_subdirectory("contrib/qtsingleapplication")
if(BUILD_GUI)
add_subdirectory("contrib/qtsingleapplication")
endif()

## Spdlog
Expand Down Expand Up @@ -289,19 +285,10 @@ target_include_directories(openssl INTERFACE ${OPENSSL_INCLUDE_DIR})
target_link_libraries(openssl INTERFACE ${OPENSSL_LIBRARIES})
if(OS_WIN)
target_link_libraries(openssl INTERFACE ws2_32)
endif()
if(OS_LINUX)
elseif(OS_LINUX)
target_link_libraries(openssl INTERFACE dl)
endif()

## ICU (needed for boost::locale and Qt)
add_library(icu INTERFACE)
if(OS_LINUX)
find_package(ICU REQUIRED COMPONENTS i18n io uc data)
target_link_libraries(icu INTERFACE ICU::ICU)
target_link_libraries(icu INTERFACE dl)
endif()

#============================================================================
# Subprojects
#============================================================================
Expand Down
10 changes: 0 additions & 10 deletions daemon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,8 @@ target_link_libraries(librevault-daemon cryptopp)
## OpenSSL
target_link_libraries(librevault-daemon openssl)

## ICU
target_link_libraries(librevault-daemon icu)

##### System libraries #####

## Threads
target_link_libraries(librevault-daemon threads)

## WinSock
if(OS_WIN)
target_link_libraries(librevault-daemon wsock32 ws2_32 Iphlpapi)
Expand All @@ -112,7 +106,3 @@ endif()
if(BUILD_STATIC AND OS_LINUX)
target_link_libraries(librevault-daemon dl)
endif()

if(USE_COTIRE)
cotire(librevault-daemon)
endif()
2 changes: 1 addition & 1 deletion lvproto
Submodule lvproto updated 1 files
+1 −1 CMakeLists.txt

0 comments on commit 848a1d4

Please sign in to comment.