summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authortycho <tycho@hanoverdesktop>2013-12-20 01:22:06 +0100
committertycho <tycho@hanoverdesktop>2013-12-20 01:22:06 +0100
commitc7d766bbcc2594e9925c47d9a00141c0cff594c1 (patch)
treea55b135ae0aa8b71bcd7fe48d36e1d86e40dd86f /src/CMakeLists.txt
parentMerge branch 'cmake' of github.com:worktycho/MCServer into cmake (diff)
downloadcuberite-c7d766bbcc2594e9925c47d9a00141c0cff594c1.tar
cuberite-c7d766bbcc2594e9925c47d9a00141c0cff594c1.tar.gz
cuberite-c7d766bbcc2594e9925c47d9a00141c0cff594c1.tar.bz2
cuberite-c7d766bbcc2594e9925c47d9a00141c0cff594c1.tar.lz
cuberite-c7d766bbcc2594e9925c47d9a00141c0cff594c1.tar.xz
cuberite-c7d766bbcc2594e9925c47d9a00141c0cff594c1.tar.zst
cuberite-c7d766bbcc2594e9925c47d9a00141c0cff594c1.zip
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 847ca59d5..4f70519bf 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -28,7 +28,8 @@ function(includefolder PATH)
"${PATH}/*.cpp"
"${PATH}/*.h"
)
- source_group("Source Files\\${PATH}" FILES ${FOLDER_FILES})
+ source_group("${PATH}" FILES ${FOLDER_FILES})
+
endfunction(includefolder)
foreach(folder ${FOLDERS})
@@ -37,16 +38,24 @@ endforeach(folder)
file(GLOB_RECURSE SOURCE
"*.cpp"
+ "*.h"
)
+source_group("" FILES ${SOURCE})
endif()
list(REMOVE_ITEM SOURCE "${PROJECT_SOURCE_DIR}/StackWalker.cpp" "${PROJECT_SOURCE_DIR}/LeakFinder.cpp")
-add_executable(../MCServer/MCServer ${SOURCE})
+if(UNIX)
+ set(EXECUTABLE ../MCServer/MCServer)
+else()
+ set(EXECUTABLE MCServer)
+endif()
+
+add_executable(${EXECUTABLE} ${SOURCE})
-target_link_libraries(../MCServer/MCServer OSSupport HTTPServer iniFile Bindings Items Blocks)
-target_link_libraries(../MCServer/MCServer Protocol Generating WorldStorage jsoncpp cryptopp)
-target_link_libraries(../MCServer/MCServer Mobs Entities Simulator UI zlib lua BlockEntities)
-target_link_libraries(../MCServer/MCServer md5 luaexpat)
+target_link_libraries(${EXECUTABLE} OSSupport HTTPServer iniFile Bindings Items Blocks)
+target_link_libraries(${EXECUTABLE} Protocol Generating WorldStorage jsoncpp cryptopp)
+target_link_libraries(${EXECUTABLE} Mobs Entities Simulator UI zlib lua BlockEntities)
+target_link_libraries(${EXECUTABLE} md5 luaexpat)