diff --git a/CMakeLists.txt b/CMakeLists.txt index e51fd93..51bf53f 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,7 +31,6 @@ if (${PLATFORM} STREQUAL "Desktop") endif() if (WIN32) - target_sources(MinecraftPE PRIVATE data/images/pe.rc) add_definitions(-D_CRT_SECURE_NO_WARNINGS) include_directories(misc/windows) set(EXTRA_LIBS ws2_32 winhttp) @@ -321,6 +320,10 @@ target_link_libraries("${PROJECT_NAME}-server" ${CMAKE_THREAD_LIBS_INIT} ${EXTRA add_executable(${PROJECT_NAME} ${CLIENT_SOURCES}) +if(WIN32) + target_sources(${PROJECT_NAME} PRIVATE data/images/pe.rc) +endif() + target_compile_definitions(${PROJECT_NAME} PUBLIC ${PLATFORM_CPP}) target_include_directories(${PROJECT_NAME} PUBLIC