cppIntro/HelloWorld/CMakeLists.txt

18 lines
358 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.16)
project(HelloWorld LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_executable(HelloWorld main.cpp
log.cpp
math.cpp
log.h)
include(GNUInstallDirs)
install(TARGETS HelloWorld
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)