2 Commits

Author SHA1 Message Date
Redacted
7620b9f06f Update main.cpp
Fix oof
2024-05-21 13:45:25 -04:00
d9e0931a4d Update CMakeLists.txt 2024-05-21 13:40:35 -04:00
2 changed files with 8 additions and 9 deletions

View File

@@ -10,20 +10,19 @@ endif()
set(CMAKE_CXX_STANDARD 20)
if (WIN32)
set(CMAKE_CXX_FLAGS "-municode")
endif()
file(GLOB_RECURSE SOURCES "src/*.cpp")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include_directories("include")
add_library(Event SHARED ${SOURCES}
src/Event.cpp
include/EventConnection.h
src/EventConnection.cpp)
if (UNIX)
add_library(Event SHARED ${SOURCES})
endif()
if (WIN32)
add_library(Event STATIC ${SOURCES})
endif()
set_target_properties(Event PROPERTIES LINKER_LANGUAGE CXX)

View File

@@ -32,7 +32,7 @@ int main() {
#ifdef _WIN32
extern "C" {
int wmain(int argc, wchar_t* argv[]) {
return main(0, nullptr);
return main();
}
}
#endif