Include required libraries in shared base (fixes gcc on windows)
This commit is contained in:
parent
6a99c54855
commit
ac7d7396c2
1 changed files with 7 additions and 1 deletions
|
|
@ -1,4 +1,10 @@
|
||||||
file(GLOB BASE_SRC *.cpp)
|
file(GLOB BASE_SRC *.cpp)
|
||||||
file(GLOB BASE_HEADERS *.hpp)
|
file(GLOB BASE_HEADERS *.hpp)
|
||||||
|
|
||||||
add_library(base SHARED ${BASE_SRC})
|
if(WIN32)
|
||||||
|
add_library(base SHARED ${BASE_SRC})
|
||||||
|
target_link_libraries(base ${Vulkan_LIBRARY} ${ASSIMP_LIBRARIES} ${WINLIBS})
|
||||||
|
else(WIN32)
|
||||||
|
add_library(base SHARED ${BASE_SRC})
|
||||||
|
target_link_libraries(base ${Vulkan_LIBRARY} ${ASSIMP_LIBRARIES} ${XCB_LIBRARIES} ${WAYLAND_CLIENT_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
endif(WIN32)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue