-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathCMakeLists.txt
33 lines (28 loc) · 1.02 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
cmake_minimum_required(VERSION 3.11)
project(WinBGIm)
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)
set(CMAKE_CXX_STANDARD 11)
SET(GCC_COVERAGE_COMPILE_FLAGS "-m64 -fno-rtti -fno-exceptions -Wno-error -Wwrite-strings -Wno-narrowing -fpermissive")
# SET(GCC_COVERAGE_COMPILE_FLAGS "-m64 -Wno-narrowing ")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}")
add_subdirectory(libbgi)
add_subdirectory(test)
#target_link_libraries(test libbgi)
#SET(GCC_COVERAGE_LINK_FLAGS "-lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32")
#
#SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS}")
#
#add_executable(bgi main.cpp
# libbgi/src/drawing.cxx
# libbgi/src/misc.cxx
# libbgi/src/mouse.cxx
# libbgi/src/palette.cxx
# libbgi/src/text.cxx
# libbgi/src/winbgi.cxx
# libbgi/src/winthread.cxx
# libbgi/src/dibutil.cxx
# libbgi/src/file.cxx
# libbgi/include/bgi/winbgim.h
# libbgi/include/bgi/winbgitypes.h
# )