mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
22 lines
552 B
CMake
22 lines
552 B
CMake
# Define the current source locations
|
|
|
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/utils)
|
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/utils)
|
|
|
|
FILE ( GLOB_RECURSE Utils_SOURCES "${CURRENT_HEADER_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" )
|
|
|
|
if ( NOT ENABLE_PROFILER )
|
|
LIST ( REMOVE_ITEM Utils_SOURCES ${CURRENT_HEADER_DIR}/Profiler.h ${CURRENT_SOURCE_DIR}/Profiler.cpp )
|
|
endif()
|
|
|
|
add_library(hyperion-utils
|
|
${Utils_SOURCES}
|
|
)
|
|
|
|
target_link_libraries(hyperion-utils
|
|
hyperion
|
|
Qt5::Core
|
|
Qt5::Gui
|
|
Qt5::Network
|
|
)
|