Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add files to build with cmake/Microsoft Visual Studio 2012
- Loading branch information
Showing
9 changed files
with
148 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# CMakeLists.txt | ||
# | ||
# Base build script for building with cmake (http://www.cmake.org) | ||
|
||
cmake_minimum_required( VERSION 2.8 ) | ||
project( PDW ) | ||
|
||
# Project version number | ||
set( PDW_VERSION_MAJOR 3 ) | ||
set( PDW_VERSION_MINOR 1 ) | ||
set( PDW_VERSION_MICRO 0 ) | ||
|
||
# Set base variables | ||
set( PDW_GFXS ) | ||
set( PDW_INCLUDES ) | ||
set( PWD_SRCS ) | ||
|
||
# Subdirectories to go to | ||
add_subdirectory( GFX ) | ||
add_subdirectory( Headers ) | ||
add_subdirectory( utils ) | ||
|
||
# Microsoft Visual Studio Specific definitions | ||
if( MSVC ) | ||
add_definitions( "-D_CRT_SECURE_NO_WARNINGS" ) | ||
endif( MSVC ) | ||
|
||
# Include Files | ||
set( PDW_INCLUDES | ||
${PDW_INCLUDES} | ||
resrc1.h | ||
) | ||
|
||
# Source Files | ||
set( PDW_SRCS | ||
${PDW_SRCS} | ||
Flex.cpp | ||
Gfx.cpp | ||
Initapp.cpp | ||
Misc.cpp | ||
Rsrc.rc | ||
PDW.cpp | ||
Pocsag.cpp | ||
acars.cpp | ||
decode.cpp | ||
ermes.cpp | ||
helper_funcs.cpp | ||
language.cpp | ||
menu.cpp | ||
mobitex.cpp | ||
toolbar.cpp | ||
printer.cpp | ||
sigind.cpp | ||
sound_in.cpp | ||
) | ||
|
||
# Create executable | ||
add_executable( PDW WIN32 | ||
${PDW_INCLUDES} | ||
${PDW_SRCS} | ||
) | ||
|
||
# Required libraries | ||
target_link_libraries( PDW | ||
Comctl32.lib | ||
Winmm.lib | ||
Ws2_32.lib | ||
) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# CMakeLists.txt | ||
# | ||
# Build script for building with cmake (http://www.cmake.org) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# CMakeLists.txt | ||
# | ||
# Build script for building with cmake (http://www.cmake.org) | ||
|
||
set( PDW_INCLUDES | ||
${PDW_INCLUDES} | ||
${CMAKE_CURRENT_SOURCE_DIR}/Resource.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/SLICER.H | ||
${CMAKE_CURRENT_SOURCE_DIR}/acars.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/decode.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/ermes.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/gfx.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/helper_funcs.h | ||
#${CMAKE_CURRENT_SOURCE_DIR}/html.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/initapp.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/language.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/menu.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/misc.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/mobitex.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/pdw.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/printer.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/sigind.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/sound_in.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/toolbar.h | ||
|
||
PARENT_SCOPE | ||
) |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# CMakeLists.txt | ||
# | ||
# Build script for building with cmake (http://www.cmake.org) | ||
|
||
set( PDW_INCLUDES | ||
${PDW_INCLUDES} | ||
${CMAKE_CURRENT_SOURCE_DIR}/OSTYPE.H | ||
${CMAKE_CURRENT_SOURCE_DIR}/binary.h | ||
#${CMAKE_CURRENT_SOURCE_DIR}/debug.h | ||
#${CMAKE_CURRENT_SOURCE_DIR}/globals.h | ||
#${CMAKE_CURRENT_SOURCE_DIR}/ipcnfg.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/rs232.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/smtp.h | ||
${CMAKE_CURRENT_SOURCE_DIR}/smtp_int.h | ||
|
||
PARENT_SCOPE | ||
) | ||
|
||
set( PDW_SRCS | ||
${PDW_SRCS} | ||
${CMAKE_CURRENT_SOURCE_DIR}/Debug.cpp | ||
#${CMAKE_CURRENT_SOURCE_DIR}/OSTYPE.C | ||
${CMAKE_CURRENT_SOURCE_DIR}/Ostype.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/binary.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/ipcnfg.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/rs232.cpp | ||
${CMAKE_CURRENT_SOURCE_DIR}/smtp.cpp | ||
|
||
PARENT_SCOPE | ||
) | ||
|