From 0e680cf3ea50cd64b1325f098eee562f78b845be Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Tue, 15 Oct 2019 11:01:21 -0300 Subject: Update CMakeLists.txt --- CMakeLists.txt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c80f456..28536a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,13 +13,17 @@ if(NOT CMAKE_BUILD_TYPE) STRING "Choose the type of build." FORCE) endif() -find_package(wxWidgets REQUIRED COMPONENTS net core base) -include(${wxWidgets_USE_FILE}) - +if(MSVC AND NOT WXSOURCE) + include(${CMAKE_SOURCE_DIR}/winmsvc.cmake) +else() + find_package(wxWidgets REQUIRED COMPONENTS net core base) + include(${wxWidgets_USE_FILE}) +endif() message(STATUS "CMAKE_BUILD_TYPE:${CMAKE_BUILD_TYPE}") -file(GLOB PSP_SRC - "/Project/*.h" - "/Project/*.cpp" + +file(GLOB PSP_SRC + "Project/*.h" + "Project/*.cpp" ) add_executable(${PROJECT_NAME} WIN32 ${PSP_SRC}) -- cgit