diff options
author | Li Jin <dragon-fly@qq.com> | 2021-02-17 11:22:07 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-02-17 11:22:07 +0800 |
commit | 7066392d1c974065181d95d93274136dcd625d43 (patch) | |
tree | cf51eafc2c52cbc12246a306bca172d799193d30 /CMakeLists.txt | |
parent | 90cd12ad9ef465f3e435e1bd034dcfbe4e19d016 (diff) | |
download | yuescript-7066392d1c974065181d95d93274136dcd625d43.tar.gz yuescript-7066392d1c974065181d95d93274136dcd625d43.tar.bz2 yuescript-7066392d1c974065181d95d93274136dcd625d43.zip |
stop reusing variables, rename project.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1fcb248..d323b6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | project ( moonp CXX ) | 1 | project ( yue CXX ) |
2 | cmake_minimum_required ( VERSION 3.1 ) | 2 | cmake_minimum_required ( VERSION 3.1 ) |
3 | 3 | ||
4 | MESSAGE(STATUS "Lua: using information from luarocks") | 4 | MESSAGE(STATUS "Lua: using information from luarocks") |
@@ -28,15 +28,15 @@ enable_language( CXX ) | |||
28 | include_directories( src ${LUA_INCLUDE_DIR} ) | 28 | include_directories( src ${LUA_INCLUDE_DIR} ) |
29 | add_definitions( -std=c++17 -O3 -fPIC ) | 29 | add_definitions( -std=c++17 -O3 -fPIC ) |
30 | 30 | ||
31 | add_library( libmoonp MODULE src/MoonP/ast.cpp src/MoonP/parser.cpp src/MoonP/moon_parser.cpp src/MoonP/moon_compiler.cpp src/MoonP/moonplus.cpp) | 31 | add_library( libyue MODULE src/yuescript/ast.cpp src/yuescript/parser.cpp src/yuescript/yue_parser.cpp src/yuescript/yue_compiler.cpp src/yuescript/yuescript.cpp) |
32 | set_target_properties( libmoonp PROPERTIES PREFIX "" ) | 32 | set_target_properties( libyue PROPERTIES PREFIX "" ) |
33 | set_target_properties( libmoonp PROPERTIES OUTPUT_NAME "moonp" ) | 33 | set_target_properties( libyue PROPERTIES OUTPUT_NAME "yue" ) |
34 | target_link_libraries( libmoonp ${LUA_LIBRARIES} ) | 34 | target_link_libraries( libyue ${LUA_LIBRARIES} ) |
35 | 35 | ||
36 | add_executable( moonp src/MoonP/ast.cpp src/MoonP/moon_compiler.cpp src/MoonP/moon_parser.cpp src/MoonP/moonplus.cpp src/MoonP/parser.cpp src/moonp.cpp ) | 36 | add_executable( yue src/yuescript/ast.cpp src/yuescript/yue_compiler.cpp src/yuescript/yue_parser.cpp src/yuescript/yuescript.cpp src/yuescript/parser.cpp src/yue.cpp ) |
37 | target_link_libraries( moonp ${LUA_LIBRARIES} ) | 37 | target_link_libraries( yue ${LUA_LIBRARIES} ) |
38 | if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | 38 | if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") |
39 | target_link_options( moonp PRIVATE -ldl -lpthread -lstdc++fs ) | 39 | target_link_options( yue PRIVATE -ldl -lpthread -lstdc++fs ) |
40 | endif() | 40 | endif() |
41 | 41 | ||
42 | install(CODE "") | 42 | install(CODE "") |