15 lines
413 B
CMake
Executable File
15 lines
413 B
CMake
Executable File
cmake_minimum_required(VERSION 3.10)
|
|
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 SHARED ${SRC_FILES})
|
|
add_executable(PorygonLangTests
|
|
${SRC_FILES}
|
|
${TEST_FILES})
|
|
|
|
target_compile_definitions(PorygonLangTests PRIVATE TESTS_BUILD) |