Skip to content

Commit

Permalink
Small cleanup in some CMakeLists.txt files
Browse files Browse the repository at this point in the history
  • Loading branch information
cbjeukendrup committed Oct 11, 2021
1 parent 927898a commit ed5fe80
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 26 deletions.
4 changes: 0 additions & 4 deletions src/diagnostics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

# This is module for convert mscz files to various formats (image, pdf, audio and etc).
# Main goal - determine what need to do and call necceasers functions.
# Usually use from command line.

set(MODULE diagnostics)

set(MODULE_QRC diagnostics.qrc)
Expand Down
14 changes: 7 additions & 7 deletions src/framework/ui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ if (OS_IS_MAC)
${CMAKE_CURRENT_LIST_DIR}/view/platform/macos/macosmainwindowprovider.h
)
# Don't mix C++ and Objective-C++ in Unity Build
set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/internal/platform/macos/macosplatformtheme.mm
${CMAKE_CURRENT_LIST_DIR}/view/platform/macos/macosmainwindowprovider.mm
PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON)

set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/internal/platform/macos/macosplatformtheme.mm
${CMAKE_CURRENT_LIST_DIR}/view/platform/macos/macosmainwindowprovider.mm
PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
set_source_files_properties(
${CMAKE_CURRENT_LIST_DIR}/internal/platform/macos/macosplatformtheme.mm
${CMAKE_CURRENT_LIST_DIR}/view/platform/macos/macosmainwindowprovider.mm
PROPERTIES
SKIP_UNITY_BUILD_INCLUSION ON
SKIP_PRECOMPILE_HEADERS ON
)
elseif(OS_IS_WIN)
set(PLATFORM_THEME_SRC
${CMAKE_CURRENT_LIST_DIR}/internal/platform/windows/windowsplatformtheme.cpp
Expand Down
4 changes: 0 additions & 4 deletions src/multiinstances/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

# This is module for convert mscz files to various formats (image, pdf, audio and etc).
# Main goal - determine what need to do and call necceasers functions.
# Usually use from command line.

set(MODULE multiinstances)

set(MODULE_QRC multiinstances.qrc)
Expand Down
18 changes: 7 additions & 11 deletions src/project/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

# This is module for convert mscz files to various formats (image, pdf, audio and etc).
# Main goal - determine what need to do and call necceasers functions.
# Usually use from command line.

set(MODULE project)

set(MODULE_QRC project.qrc)
Expand All @@ -34,13 +30,14 @@ if (OS_IS_MAC)
set(PLATFORM_SRC
${CMAKE_CURRENT_LIST_DIR}/internal/platform/macos/macosrecentfilescontroller.mm
${CMAKE_CURRENT_LIST_DIR}/internal/platform/macos/macosrecentfilescontroller.h
)
)
# Don't mix C++ and Objective-C++ in Unity Build
set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/internal/platform/macos/macosrecentfilescontroller.mm
PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON)

set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/internal/platform/macos/macosrecentfilescontroller.mm
PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
set_source_files_properties(
${CMAKE_CURRENT_LIST_DIR}/internal/platform/macos/macosrecentfilescontroller.mm
PROPERTIES
SKIP_UNITY_BUILD_INCLUSION ON
SKIP_PRECOMPILE_HEADERS ON
)
elseif(OS_IS_WIN)
set(PLATFORM_SRC
${CMAKE_CURRENT_LIST_DIR}/internal/platform/windows/windowsrecentfilescontroller.cpp
Expand Down Expand Up @@ -126,4 +123,3 @@ set(MODULE_SRC
set(MODULE_LINK notation)

include(${PROJECT_SOURCE_DIR}/build/module.cmake)

0 comments on commit ed5fe80

Please sign in to comment.