-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
39 lines (32 loc) · 1.19 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.14)
project(CREXX)
# Global Platform Options
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
if ("${CMAKE_CXX_PLATFORM_ID}" STREQUAL "MinGW")
# Standards based printfs not MSVCRT
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__USE_MINGW_ANSI_STDIO=1")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__USE_MINGW_ANSI_STDIO=1")
endif ()
elseif ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
elseif ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
endif ()
include(CTest)
add_subdirectory(re2c)
add_subdirectory(lemon)
add_subdirectory(platform)
add_subdirectory(avl_tree)
add_subdirectory(cpacker)
add_subdirectory(compiler)
add_subdirectory(machine)
add_subdirectory(assembler)
add_subdirectory(disassembler)
add_subdirectory(interpreter)
add_subdirectory(rxpa)
add_subdirectory(lib)
add_subdirectory(debugger)
add_subdirectory(tests)
set(SOURCE_SCRIPTS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bin)
# set the destination directory for your scripts in the build directory
set(DEST_SCRIPTS_DIR ${CMAKE_CURRENT_BINARY_DIR})
# copy the scripts from the source directory to the destination directory using file() command
file(COPY ${SOURCE_SCRIPTS_DIR} DESTINATION ${DEST_SCRIPTS_DIR})