PorygonLang/CMakeLists.txt

28 lines
617 B
CMake
Executable File

cmake_minimum_required(VERSION 3.13)
project(PorygonLang)
set(CMAKE_CXX_STANDARD 17)
include_directories(extern)
file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp")
file(GLOB_RECURSE TEST_FILES "tests/*.cpp" "tests/*.hpp")
add_library(PorygonLang ${SRC_FILES})
add_executable(PorygonLangTests
${SRC_FILES}
${TEST_FILES})
target_compile_definitions(PorygonLangTests PRIVATE TESTS_BUILD)
find_package( Boost )
include_directories(
${BOOST_INCLUDE_DIRS}
)
target_link_libraries(PorygonLang ${Boost_LIBRARIES} )
target_link_libraries(PorygonLangTests ${Boost_LIBRARIES} )
include(CTest)