Compare commits
3 Commits
22f6b4acfe
...
6a2ef1b38d
Author | SHA1 | Date | |
---|---|---|---|
6a2ef1b38d | |||
eda2ae359e | |||
b8ce104c97 |
@ -12,6 +12,8 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ${USE_COMPILE_COMMANDS})
|
|||||||
|
|
||||||
# Set different output directories for MSVC and MinGW
|
# Set different output directories for MSVC and MinGW
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
|
set_property(GLOBAL PROPERTY VS_STARTUP_PROJECT LightShow) # Startup Project
|
||||||
|
|
||||||
set(OUTPUT_BIN "${CMAKE_BINARY_DIR}/msvc/bin")
|
set(OUTPUT_BIN "${CMAKE_BINARY_DIR}/msvc/bin")
|
||||||
set(OUTPUT_LIB "${CMAKE_BINARY_DIR}/msvc/lib")
|
set(OUTPUT_LIB "${CMAKE_BINARY_DIR}/msvc/lib")
|
||||||
elseif (MINGW)
|
elseif (MINGW)
|
||||||
@ -32,7 +34,8 @@ add_subdirectory(src/main)
|
|||||||
|
|
||||||
# cmake --install
|
# cmake --install
|
||||||
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
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()
|
endif()
|
||||||
|
|
||||||
install(TARGETS LightShow launchpad net-interface
|
install(TARGETS LightShow launchpad net-interface
|
||||||
|
15
README.md
15
README.md
@ -36,3 +36,18 @@ If you want to use export compile commands you need to use
|
|||||||
```sh
|
```sh
|
||||||
-DUSE_COMPILE_COMMANDS=ON
|
-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)
|
@ -4,4 +4,4 @@
|
|||||||
#define NETAPI
|
#define NETAPI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void TestInterface();
|
NETAPI void TestInterface();
|
Loading…
x
Reference in New Issue
Block a user