1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 02:12:45 +01:00

cmake: rwviewer not links to qt5's imported targets

This commit is contained in:
Anonymous Maarten 2017-10-26 06:21:39 +02:00 committed by Daniel Evans
parent 06c4bf09f7
commit ca9cc4f703

View File

@ -1,9 +1,10 @@
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Qt5Core REQUIRED) find_package(Qt5OpenGL REQUIRED)
find_package(Qt5Widgets REQUIRED)
add_executable(rwviewer add_executable(rwviewer WIN32
main.cpp main.cpp
ViewerWindow.cpp ViewerWindow.cpp
@ -26,8 +27,10 @@ add_executable(rwviewer
target_link_libraries(rwviewer target_link_libraries(rwviewer
rwengine rwengine
Qt5::OpenGL
Qt5::Widgets
) )
qt5_use_modules(rwviewer Widgets OpenGL) install(TARGETS rwviewer
RUNTIME DESTINATION "${BIN_DIR}"
install(TARGETS rwviewer RUNTIME DESTINATION "${BIN_DIR}") )