Add Client and Window
This commit is contained in:
1 parent
1f1e62abdc
commit
91afd4ad1b
7 files changed
+152
-5
No files matched your search
@@ -1,9 +1,17 @@
|
||||
# TestGame app CMakeLists.txt
|
||||
add_executable(TestGame "src/TestGame.cpp")
|
||||
add_executable(TestGame WIN32 "src/TestGame.cpp")
|
||||
|
||||
# Use C++20
|
||||
set_property(TARGET TestGame PROPERTY CXX_STANDARD 20)
|
||||
|
||||
# Use "main" function
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /entry:mainCRTStartup")
|
||||
|
||||
# Keep the console in debug
|
||||
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
||||
set_property(TARGET TestGame PROPERTY WIN32_EXECUTABLE FALSE)
|
||||
endif()
|
||||
|
||||
# Link to NF library
|
||||
target_link_libraries(TestGame NothinFancy)
|
||||
target_include_directories(TestGame PUBLIC "${CMAKE_SOURCE_DIR}/NothinFancy/src/include")
|
||||
Reference in new issue
Block a user