-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (31 loc) · 879 Bytes
/
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
38
39
40
cmake_minimum_required(VERSION 3.0)
project(VNVM)
file(GLOB VNVM_SRC
"*.h"
"*.cpp"
"Framework/*.h"
)
file(GLOB VNASM_SRC
"Assemble/*.h"
"Assemble/*.cpp"
)
file(GLOB VNDASM_SRC
"Disassemble/*.h"
"Disassemble/*.cpp"
)
file(GLOB Vn_Sources
"*.vn"
)
foreach(vn_src ${Vn_Sources})
get_filename_component(vn_name ${vn_src} NAME)
configure_file(${vn_src} ${CMAKE_CURRENT_BINARY_DIR}/${vn_name})
endforeach(vn_src)
set(VNASM_NAME VNAsm)
set(VNDASM_NAME VNDasm)
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME} ${VNVM_SRC})
target_include_directories(${PROJECT_NAME} PRIVATE . ./Framework)
add_executable(${VNASM_NAME} ${VNASM_SRC})
target_include_directories(${VNASM_NAME} PRIVATE ./Assemble ./Framework)
add_executable(${VNDASM_NAME} ${VNDASM_SRC})
target_include_directories(${VNDASM_NAME} PRIVATE . ./Disassemble ./Framework)