Fix quirks in CMake build on Mac and Windows
[WebKit-https.git] / Tools / WinLauncher / CMakeLists.txt
index aca7740..212dc45 100644 (file)
@@ -38,13 +38,16 @@ set(WinLauncher_LIBRARIES
 
 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:wWinMainCRTStartup")
 
-add_definitions(-D_UNICODE -DWIN_CAIRO)
+if (${WTF_PLATFORM_WIN_CAIRO})
+    add_definitions(-DWIN_CAIRO)
+endif ()
+add_definitions(-D_UNICODE)
 include_directories(${WinLauncher_INCLUDE_DIRECTORIES})
-add_library(WinLauncher SHARED ${WinLauncher_SOURCES})
-target_link_libraries(WinLauncher ${WinLauncher_LIBRARIES})
-set_target_properties(WinLauncher PROPERTIES FOLDER "Tools")
+add_library(WinLauncherLib SHARED ${WinLauncher_SOURCES})
+target_link_libraries(WinLauncherLib ${WinLauncher_LIBRARIES})
+set_target_properties(WinLauncherLib PROPERTIES FOLDER "Tools")
 
-add_executable(WinLauncherLauncher WIN32 ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp WinLauncher.vcxproj/WinLauncher.rc)
-target_link_libraries(WinLauncherLauncher shlwapi)
-set_target_properties(WinLauncherLauncher PROPERTIES FOLDER "Tools")
-set_target_properties(WinLauncherLauncher PROPERTIES OUTPUT_NAME "WinLauncher")
+add_executable(WinLauncher WIN32 ${TOOLS_DIR}/win/DLLLauncher/DLLLauncherMain.cpp WinLauncher.vcxproj/WinLauncher.rc)
+target_link_libraries(WinLauncher shlwapi)
+set_target_properties(WinLauncher PROPERTIES FOLDER "Tools")
+set_target_properties(WinLauncher PROPERTIES OUTPUT_NAME "WinLauncher")