summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2019-10-15 11:01:21 -0300
committerGitHub <noreply@github.com>2019-10-15 11:01:21 -0300
commit0e680cf3ea50cd64b1325f098eee562f78b845be (patch)
tree917cc84aee1acdfa6c9f1de22c132e17dfdbe43e
parent35fa857996ca7a41f0ab11acff7f294894f3e460 (diff)
downloadPSP.git-0e680cf3ea50cd64b1325f098eee562f78b845be.tar.gz
PSP.git-0e680cf3ea50cd64b1325f098eee562f78b845be.tar.xz
PSP.git-0e680cf3ea50cd64b1325f098eee562f78b845be.zip
Update CMakeLists.txt
-rw-r--r--CMakeLists.txt16
1 files 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})