VWeb/example/CMakeLists.txt

22 lines
544 B
CMake
Raw Normal View History

2022-08-23 14:13:21 +02:00
cmake_minimum_required(VERSION 3.17)
project(VWeb_Example)
set(CMAKE_CXX_STANDARD 20)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
add_executable(VWeb_Example main.cpp)
include_directories(${CMAKE_SOURCE_DIR}/..)
2023-09-02 14:17:56 +02:00
set(mode Release)
2022-08-23 14:13:21 +02:00
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
2023-09-02 14:17:56 +02:00
set(mode Debug)
2022-08-23 14:13:21 +02:00
endif ()
set(vweb_lib ${CMAKE_SOURCE_DIR}/../dist/libVWeb.${mode}.a)
2023-09-02 14:17:56 +02:00
SET_SOURCE_FILES_PROPERTIES(
main.cpp
PROPERTIES OBJECT_DEPENDS ${vweb_lib}
)
2022-08-23 14:13:21 +02:00
target_link_libraries(VWeb_Example Threads::Threads ${vweb_lib})