-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
27 lines (18 loc) · 1.08 KB
/
CMakeLists.txt
File metadata and controls
27 lines (18 loc) · 1.08 KB
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
cmake_minimum_required (VERSION 3.0) # 필수 정보
project (SWING) # 필수 정보
set(CMAKE_SUPPRESS_REGENERATION true)
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/src)
include_directories(${PROJECT_SOURCE_DIR}/src/AST)
include_directories(${PROJECT_SOURCE_DIR}/src/Type)
set(EXECUTABLE_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/bin")
add_subdirectory(${PROJECT_SOURCE_DIR}/src)
file(GLOB SOURCES "${PROJECT_SOURCE_DIR}/src/*.cpp" "${PROJECT_SOURCE_DIR}/src/*.h" "${PROJECT_SOURCE_DIR}/src/*.hpp")
file(GLOB_RECURSE SRC_AST "${PROJECT_SOURCE_DIR}/src/AST/*.cpp" "${PROJECT_SOURCE_DIR}/src/AST/*.h")
file(GLOB_RECURSE SRC_TYPE "${PROJECT_SOURCE_DIR}/src/Type/*.cpp" "${PROJECT_SOURCE_DIR}/src/Type/*.h")
#file(GLOB_RECURSE SRC_LIBSWING "${PROJECT_SOURCE_DIR}/src/libswing/*.cpp" "${PROJECT_SOURCE_DIR}/src/libswing/*.h")
#add_library(libswing STATIC ${SRC_LIBSWING})
add_executable(swing ${SOURCES} ${SRC_AST} ${SRC_TYPE})
source_group("AST" FILES ${SRC_AST})
#source_group("Debugger" FILES ${SRC_DEBUGGER})
source_group("Type" FILES ${SRC_TYPE})