-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (24 loc) · 1.17 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
cmake_minimum_required(VERSION 3.22)
project(libatla)
# TODO: figure out how to hide this from other projects
#add_subdirectory(external/libsmd)
include(external/lua-5.2.4/lua.cmake)
include(src/atla.cmake)
# add_executable(atlalc ./src/atlalc/atlalc.c)
# target_link_libraries(atlalc lua)
# todo: tests
# add_custom_command(
# OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/test/01_basic/atla.gen.c
# COMMAND atlalc -o ${CMAKE_CURRENT_BINARY_DIR}/test/01_basic ../test/01_basic/basic.lua
# DEPENDS atlalc ./test/01_basic/basic.lua)
# add_executable(01_basic ./test/01_basic/main.c ${CMAKE_CURRENT_BINARY_DIR}/test/01_basic/atla.gen.c)
# target_include_directories(01_basic
# PRIVATE ./include)
#
# add_custom_command(
# OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/test/02_split/atla.gen.c
# COMMAND atlalc -o ${CMAKE_CURRENT_BINARY_DIR}/test/02_split ../test/02_split/foo.lua ../test/02_split/vec2.lua ../test/02_split/vec3.lua
# DEPENDS atlalc ./test/02_split/foo.lua ./test/02_split/vec2.lua ./test/02_split/vec3.lua)
# add_executable(02_split ./test/02_split/main.c ${CMAKE_CURRENT_BINARY_DIR}/test/02_split/atla.gen.c)
# target_include_directories(02_split
# PRIVATE ./include)