-
Notifications
You must be signed in to change notification settings - Fork 35
/
CMakeLists.txt
37 lines (25 loc) · 878 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
cmake_minimum_required(VERSION 3.16)
project(typescript)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS "-Wno-unused-variable -Wno-switch -Wno-trigraphs")
if(CMAKE_BUILD_TYPE STREQUAL "Release")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -ffast-math")
endif()
include_directories(libs/tracy/)
include_directories(libs/fmt/include/)
list(APPEND CMAKE_MODULE_PATH libs)
add_subdirectory(libs/doctest)
add_subdirectory(libs/tracy)
add_subdirectory(libs/fmt)
set(ASMJIT_STATIC TRUE)
#add_subdirectory(libs/asmjit)
# enable for profiling
#add_definitions(-DTRACY_ENABLE)
#link_libraries(Tracy::TracyClient)
#include_directories(libs/asmjit/src)
include_directories(libs/magic_enum)
add_subdirectory(src)
add_executable(typescript_main main.cpp)
target_link_libraries(typescript_main typescript)
add_executable(bench bench.cpp)
target_link_libraries(bench typescript)