Compare commits

...

3 Commits

3 changed files with 21 additions and 3 deletions

View File

@ -12,6 +12,8 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ${USE_COMPILE_COMMANDS})
# Set different output directories for MSVC and MinGW
if (MSVC)
set_property(GLOBAL PROPERTY VS_STARTUP_PROJECT LightShow) # Startup Project
set(OUTPUT_BIN "${CMAKE_BINARY_DIR}/msvc/bin")
set(OUTPUT_LIB "${CMAKE_BINARY_DIR}/msvc/lib")
elseif (MINGW)
@ -32,7 +34,8 @@ add_subdirectory(src/main)
# cmake --install
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
message(FATAL_ERROR "You must specify an installation path using -DCMAKE_INSTALL_PREFIX=<path>")
set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "Install path prefix" FORCE)
message(WARNING "No install path set, defaulting to ${CMAKE_INSTALL_PREFIX}")
endif()
install(TARGETS LightShow launchpad net-interface

View File

@ -35,4 +35,19 @@ NOTE:
If you want to use export compile commands you need to use
```sh
-DUSE_COMPILE_COMMANDS=ON
```
```
### **C++ Modules Support**
To build and use **C++20 Modules**, ensure the following prerequisites are met:
#### **1. Compiler Support**
You need a compiler that supports **C++20 Modules**. The following versions are required:
- **GCC 11+** (Recommended: **GCC 14.2.0+**)
- **Clang 10+**
- **MSVC 19.30+ (Visual Studio 2022+)**
To check your compiler version, run:
```sh
g++ --version
```
Ensure it outputs GCC 11+, preferably GCC 14.2.0 or later. You can check if your compiler supports CPP Modules [on this page](https://en.cppreference.com/w/cpp/compiler_support/20)

View File

@ -4,4 +4,4 @@
#define NETAPI
#endif
void TestInterface();
NETAPI void TestInterface();