2016-05-26 23:44:27 +02:00
|
|
|
# Define the current source locations
|
2016-11-26 22:34:46 +01:00
|
|
|
|
2016-05-26 23:44:27 +02:00
|
|
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/utils)
|
|
|
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/utils)
|
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
FILE ( GLOB_RECURSE Utils_SOURCES "${CURRENT_HEADER_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" )
|
2016-05-26 23:44:27 +02:00
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
if ( NOT ENABLE_PROFILER )
|
|
|
|
LIST ( REMOVE_ITEM Utils_SOURCES ${CURRENT_HEADER_DIR}/Profiler.h ${CURRENT_SOURCE_DIR}/Profiler.cpp )
|
2016-11-26 22:34:46 +01:00
|
|
|
endif()
|
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
set(Utils_RESOURCES ${CURRENT_SOURCE_DIR}/JSONRPC_schemas.qrc )
|
2017-08-01 15:42:36 +02:00
|
|
|
|
2016-11-26 22:34:46 +01:00
|
|
|
add_library(hyperion-utils
|
|
|
|
${Utils_SOURCES}
|
2017-08-01 15:42:36 +02:00
|
|
|
${Utils_RESOURCES}
|
2016-11-26 22:34:46 +01:00
|
|
|
)
|
|
|
|
|
2016-05-26 23:44:27 +02:00
|
|
|
target_link_libraries(hyperion-utils
|
2017-08-01 15:42:36 +02:00
|
|
|
hyperion
|
|
|
|
Qt5::Core
|
|
|
|
Qt5::Gui
|
|
|
|
Qt5::Network
|
|
|
|
)
|