uibk_703807-Advanced-CXX/exercises/task22/CMakeLists.txt
2021-01-07 23:27:52 +01:00

13 lines
328 B
CMake

cmake_minimum_required(VERSION 3.8)
project(example LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
add_library(foo SHARED libFoo/foo.cpp)
target_include_directories(foo PUBLIC libFoo)
add_executable(executable executable.cpp)
target_link_libraries(executable foo)