portability/CMakeLists.txt

15 lines
441 B
CMake
Raw Normal View History

2017-12-08 08:29:14 +11:00
cmake_minimum_required (VERSION 2.6)
project (portability)
include_directories("modules/vulkan-docs/src")
add_executable(native_test native/test.cpp native/window.cpp)
find_library(PORTABILITY_LIB portability "target/debug")
target_link_libraries(native_test ${PORTABILITY_LIB})
if (WIN32)
target_link_libraries(native_test Dwmapi Userenv ws2_32)
else (WIN32)
target_link_libraries(native_test pthread dl m X11 xcb)
endif (WIN32)