diff options
author | Vitaly Svyastyn <protomors@gmail.com> | 2017-10-31 13:32:16 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-10-31 14:32:16 +0300 |
commit | 4d9bf8032dd659e091394d688b6a2c59bf222240 (patch) | |
tree | 517f405276c562044b8f7f32a9475e4bac7cf94e /src | |
parent | 9437834f8f4d3abf32a8629747385d666c652084 (diff) |
Initial CMake support. (#1013)
* CMake files for building application and core library.
* CMake files for core plugins. Now it runs!
* CMake files for some plugins.
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/core/CMakeLists.txt | 14 | ||||
-rw-r--r-- | src/core/stdauth/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/core/stdautoaway/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/core/stdaway/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/core/stdclist/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/core/stdcrypt/CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/core/stdemail/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/core/stdfile/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/core/stdhelp/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/core/stdidle/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/core/stdmsg/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/core/stdssl/CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/core/stduihist/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/core/stduserinfo/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/core/stduseronline/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/mir_app/CMakeLists.txt | 6 | ||||
-rw-r--r-- | src/mir_core/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/miranda32/CMakeLists.txt | 7 |
19 files changed, 66 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000000..505df3d80d --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,4 @@ +add_subdirectory(mir_core) +add_subdirectory(mir_app) +add_subdirectory(miranda32) +add_subdirectory(core)
\ No newline at end of file diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt new file mode 100644 index 0000000000..e91ba77adb --- /dev/null +++ b/src/core/CMakeLists.txt @@ -0,0 +1,14 @@ +add_subdirectory(stdauth) +add_subdirectory(stdautoaway) +add_subdirectory(stdaway) +add_subdirectory(stdclist) +add_subdirectory(stdcrypt) +add_subdirectory(stdemail) +add_subdirectory(stdfile) +add_subdirectory(stdhelp) +add_subdirectory(stdidle) +add_subdirectory(stdmsg) +add_subdirectory(stdssl) +add_subdirectory(stduihist) +add_subdirectory(stduserinfo) +add_subdirectory(stduseronline)
\ No newline at end of file diff --git a/src/core/stdauth/CMakeLists.txt b/src/core/stdauth/CMakeLists.txt new file mode 100644 index 0000000000..eb455710b9 --- /dev/null +++ b/src/core/stdauth/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET StdAuth) +include(${CMAKE_SOURCE_DIR}/cmake/core.cmake)
\ No newline at end of file diff --git a/src/core/stdautoaway/CMakeLists.txt b/src/core/stdautoaway/CMakeLists.txt new file mode 100644 index 0000000000..418414b0b0 --- /dev/null +++ b/src/core/stdautoaway/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET StdAutoAway) +include(${CMAKE_SOURCE_DIR}/cmake/core.cmake)
\ No newline at end of file diff --git a/src/core/stdaway/CMakeLists.txt b/src/core/stdaway/CMakeLists.txt new file mode 100644 index 0000000000..567f31d827 --- /dev/null +++ b/src/core/stdaway/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET StdAway) +include(${CMAKE_SOURCE_DIR}/cmake/core.cmake)
\ No newline at end of file diff --git a/src/core/stdclist/CMakeLists.txt b/src/core/stdclist/CMakeLists.txt new file mode 100644 index 0000000000..4477d53c3a --- /dev/null +++ b/src/core/stdclist/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET StdClist) +include(${CMAKE_SOURCE_DIR}/cmake/core.cmake)
\ No newline at end of file diff --git a/src/core/stdcrypt/CMakeLists.txt b/src/core/stdcrypt/CMakeLists.txt new file mode 100644 index 0000000000..1a36c1921c --- /dev/null +++ b/src/core/stdcrypt/CMakeLists.txt @@ -0,0 +1,3 @@ +set(TARGET StdCrypt) +include(${CMAKE_SOURCE_DIR}/cmake/core.cmake) +target_link_libraries(${TARGET} Zlib)
\ No newline at end of file diff --git a/src/core/stdemail/CMakeLists.txt b/src/core/stdemail/CMakeLists.txt new file mode 100644 index 0000000000..d7038bcdfc --- /dev/null +++ b/src/core/stdemail/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET StdEmail) +include(${CMAKE_SOURCE_DIR}/cmake/core.cmake)
\ No newline at end of file diff --git a/src/core/stdfile/CMakeLists.txt b/src/core/stdfile/CMakeLists.txt new file mode 100644 index 0000000000..a91f49e32a --- /dev/null +++ b/src/core/stdfile/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET StdFile) +include(${CMAKE_SOURCE_DIR}/cmake/core.cmake)
\ No newline at end of file diff --git a/src/core/stdhelp/CMakeLists.txt b/src/core/stdhelp/CMakeLists.txt new file mode 100644 index 0000000000..847cd567ba --- /dev/null +++ b/src/core/stdhelp/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET StdHelp) +include(${CMAKE_SOURCE_DIR}/cmake/core.cmake)
\ No newline at end of file diff --git a/src/core/stdidle/CMakeLists.txt b/src/core/stdidle/CMakeLists.txt new file mode 100644 index 0000000000..67735cfc07 --- /dev/null +++ b/src/core/stdidle/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET StdIdle) +include(${CMAKE_SOURCE_DIR}/cmake/core.cmake)
\ No newline at end of file diff --git a/src/core/stdmsg/CMakeLists.txt b/src/core/stdmsg/CMakeLists.txt new file mode 100644 index 0000000000..75b068ef77 --- /dev/null +++ b/src/core/stdmsg/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET StdMsg) +include(${CMAKE_SOURCE_DIR}/cmake/core.cmake)
\ No newline at end of file diff --git a/src/core/stdssl/CMakeLists.txt b/src/core/stdssl/CMakeLists.txt new file mode 100644 index 0000000000..ecc952031a --- /dev/null +++ b/src/core/stdssl/CMakeLists.txt @@ -0,0 +1,3 @@ +set(TARGET StdSSL) +include(${CMAKE_SOURCE_DIR}/cmake/core.cmake) +target_link_libraries(${TARGET} secur32.lib crypt32.lib)
\ No newline at end of file diff --git a/src/core/stduihist/CMakeLists.txt b/src/core/stduihist/CMakeLists.txt new file mode 100644 index 0000000000..6b344c8bd4 --- /dev/null +++ b/src/core/stduihist/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET StdUIHist) +include(${CMAKE_SOURCE_DIR}/cmake/core.cmake)
\ No newline at end of file diff --git a/src/core/stduserinfo/CMakeLists.txt b/src/core/stduserinfo/CMakeLists.txt new file mode 100644 index 0000000000..42a47311b7 --- /dev/null +++ b/src/core/stduserinfo/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET StdUserInfo) +include(${CMAKE_SOURCE_DIR}/cmake/core.cmake)
\ No newline at end of file diff --git a/src/core/stduseronline/CMakeLists.txt b/src/core/stduseronline/CMakeLists.txt new file mode 100644 index 0000000000..6cae375826 --- /dev/null +++ b/src/core/stduseronline/CMakeLists.txt @@ -0,0 +1,2 @@ +set(TARGET StdUserOnline) +include(${CMAKE_SOURCE_DIR}/cmake/core.cmake)
\ No newline at end of file diff --git a/src/mir_app/CMakeLists.txt b/src/mir_app/CMakeLists.txt new file mode 100644 index 0000000000..8e72c06f59 --- /dev/null +++ b/src/mir_app/CMakeLists.txt @@ -0,0 +1,6 @@ +file(GLOB SOURCES "src/*.h" "src/*.cpp" "src/mir_app.def" "res/*.rc") +set(TARGET mir_app) +include(${CMAKE_SOURCE_DIR}/cmake/lib.cmake) + +set_target_properties(${TARGET} PROPERTIES COMPILE_DEFINITIONS "MIR_APP_EXPORTS") +target_link_libraries(${TARGET} Zlib)
\ No newline at end of file diff --git a/src/mir_core/CMakeLists.txt b/src/mir_core/CMakeLists.txt new file mode 100644 index 0000000000..aaaacf1312 --- /dev/null +++ b/src/mir_core/CMakeLists.txt @@ -0,0 +1,5 @@ +file(GLOB SOURCES "src/*.h" "src/*.cpp" "src/mir_core.def") +set(TARGET mir_core) +include(${CMAKE_SOURCE_DIR}/cmake/lib.cmake) + +set_target_properties(${TARGET} PROPERTIES COMPILE_DEFINITIONS "MIR_CORE_EXPORTS")
\ No newline at end of file diff --git a/src/miranda32/CMakeLists.txt b/src/miranda32/CMakeLists.txt new file mode 100644 index 0000000000..1ca94b3a1d --- /dev/null +++ b/src/miranda32/CMakeLists.txt @@ -0,0 +1,7 @@ +file(GLOB SOURCES "src/*.h" "src/*.cpp" "res/*.rc") +add_executable(miranda32 ${SOURCES}) +include_directories(.) +set_target_properties(miranda32 PROPERTIES + LINK_FLAGS "/SUBSYSTEM:WINDOWS" + RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/$<CONFIG>" +)
\ No newline at end of file |