1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/examples/console/CMakeLists.txt
2017-09-05 18:07:05 +08:00

25 lines
561 B
CMake

##SOURCES
set(SUBPROJECT_NAME qqtconsole)
file(GLOB SOURCES "*.cpp")
add_executable(${SUBPROJECT_NAME} ${SOURCES})
include_directories(${PROJECT_SOURCE_DIR}/src)
target_link_libraries(${SUBPROJECT_NAME} QQt)
##BUILDING
#load qt5 librariess
set(Qt5Libs Core )
foreach(loop_var ${Qt5Libs})
#message(Qt5${loop_var})
find_package(Qt5${loop_var})
target_link_libraries(${SUBPROJECT_NAME} Qt5::${loop_var})
endforeach(loop_var)
install( TARGETS ${SUBPROJECT_NAME}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)