Created
September 3, 2020 17:29
-
-
Save zrax/691262c41b9e1a1f812e2dcea61d482a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 582b808..d7c2e1b 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -52,7 +52,7 @@ endif() | |
add_subdirectory(oshw-${OSHW}) | |
-add_executable(${TWORLD_EXE} WIN32 tworld.c) | |
+add_executable(${TWORLD_EXE} tworld.c) | |
target_sources(${TWORLD_EXE} PRIVATE | |
cmdline.h | |
cmdline.c | |
diff --git a/oshw-qt/CMakeLists.txt b/oshw-qt/CMakeLists.txt | |
index c885ecd..1b222e5 100644 | |
--- a/oshw-qt/CMakeLists.txt | |
+++ b/oshw-qt/CMakeLists.txt | |
@@ -29,6 +33,7 @@ target_include_directories(oshw-qt PRIVATE | |
${SDL_INCLUDE_DIR} | |
) | |
+string(REPLACE "-mwindows;" "" SDL_LIBRARY "${SDL_LIBRARY}") | |
target_link_libraries(oshw-qt PUBLIC | |
${SDL_LIBRARY} | |
Qt5::Core |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment