mirror of
https://github.com/obhq/obliteration.git
synced 2024-11-27 05:00:24 +00:00
Fixes linking error
This commit is contained in:
parent
367bb8d0a8
commit
9f97784cec
@ -3,6 +3,7 @@ include(ExternalProject)
|
||||
|
||||
# External dependencies.
|
||||
find_package(Qt5 COMPONENTS Widgets REQUIRED)
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
# Setup Rust target.
|
||||
ExternalProject_Add(emulator
|
||||
@ -39,8 +40,13 @@ set_property(TARGET obliteration PROPERTY AUTORCC ON)
|
||||
target_compile_features(obliteration PRIVATE cxx_std_17)
|
||||
|
||||
target_link_libraries(obliteration PRIVATE Qt5::Widgets)
|
||||
target_link_libraries(obliteration PRIVATE Threads::Threads)
|
||||
target_link_libraries(obliteration PRIVATE debug ${EMULATOR_DEBUG} optimized ${EMULATOR_RELEASE})
|
||||
|
||||
if(WIN32)
|
||||
target_link_libraries(obliteration PRIVATE ws2_32)
|
||||
endif()
|
||||
|
||||
# Setup installation.
|
||||
if(WIN32)
|
||||
install(TARGETS obliteration DESTINATION .)
|
||||
|
Loading…
Reference in New Issue
Block a user