File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.24 )
1+ cmake_minimum_required (VERSION 3.28 )
22project (vectorjs VERSION 0.1.0 LANGUAGES CXX )
33
44# Require C++23 standard
@@ -52,23 +52,27 @@ FetchContent_MakeAvailable(cli11 raylib quickjs-ng qjswrapper)
5252# 2. Executable Target
5353# -----------------------------------------------------------------------------
5454
55- add_executable (vectorjs ${SRC_FILES} )
55+ # Define the target executable
56+ add_executable (vectorjs )
57+
58+ # Add source files to the target
59+ target_sources (vectorjs PRIVATE
60+ "src/main.cpp"
61+ "src/engine.cpp"
62+ "src/api/api_application.cpp"
63+ "src/api/api_classes.cpp"
64+ "src/api/api_enums.cpp"
65+ )
5666
5767# Hide console on Windows, keep standard main() entry point
5868if (WIN32 )
5969 target_link_options (vectorjs PRIVATE "/SUBSYSTEM:WINDOWS" "/ENTRY:mainCRTStartup" )
6070endif ()
6171
62- target_sources (vectorjs PRIVATE
63- "src/main.cpp"
64- "src/engine.cpp"
65- "src/api/api_application.cpp"
66- "src/api/api_classes.cpp"
67- "src/api/api_enums.cpp"
68- )
69-
72+ # Include directories
7073target_include_directories (vectorjs PRIVATE src )
7174
75+ # Link dependencies
7276target_link_libraries (vectorjs PRIVATE
7377 CLI11::CLI11
7478 raylib
You can’t perform that action at this time.
0 commit comments