3 Commits

Author SHA1 Message Date
27af86ebf2 Update Event.h 2024-06-01 19:32:26 -04:00
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
3 changed files with 10 additions and 10 deletions

View File

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

View File

@@ -2,13 +2,14 @@
/// @description Templated Event Hook Class modeled after C# events /// @description Templated Event Hook Class modeled after C# events
/// @author Josh O'Leary - Redacted Software /// @author Josh O'Leary - Redacted Software
/// @revision 3 /// @revision 3
/// @lastedit 2024-02-21 /// @lastedit 2024-06-01
/// @license Unlicense - Public Domain /// @license Unlicense - Public Domain
#pragma once #pragma once
#include <chrono> #include <chrono>
#include <functional> #include <functional>
#include <memory>
// TODO: Document & Explain this // TODO: Document & Explain this

View File

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